#include <LSOCK_Stream.h>
Inheritance diagram for ACE_LSOCK_Stream:


Public Types | |
| typedef ACE_UNIX_Addr | PEER_ADDR |
Public Methods | |
| ssize_t | send_msg (const iovec iov[], size_t n, ACE_HANDLE handle) |
| Send iovecs via <writev>. More... | |
| ssize_t | recv_msg (iovec iov[], size_t n, ACE_HANDLE &handle) |
| Send iovecs via <writev>. More... | |
| ACE_HANDLE | get_handle (void) const |
| Get handle. More... | |
| void | set_handle (ACE_HANDLE fd) |
| Overrides set_handle from the base classes. More... | |
| void | dump (void) const |
| Dump the state of an object. More... | |
| int | get_local_addr (ACE_Addr &) const |
| This method simply returns the "local" addr. More... | |
| int | get_remote_addr (ACE_Addr &) const |
| This method returns the "local" addr since it's the same value for UNIX domain sockets. More... | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. More... | |
Definition at line 35 of file LSOCK_Stream.h.
|
|
Reimplemented from ACE_SOCK_Stream. Definition at line 56 of file LSOCK_Stream.h. |
|
|
Dump the state of an object.
Reimplemented from ACE_LSOCK. Definition at line 48 of file LSOCK_Stream.cpp. References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_TRACE, ACE_LSOCK::dump, ACE_SOCK_Stream::dump, and LM_DEBUG.
00049 {
00050 ACE_TRACE ("ACE_LSOCK_Stream::dump");
00051
00052 ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00053 ACE_SOCK_Stream::dump ();
00054 ACE_LSOCK::dump ();
00055 ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00056 }
|
|
|
Get handle.
Reimplemented from ACE_LSOCK. Definition at line 18 of file LSOCK_Stream.i. References ACE_TRACE, and ACE_IPC_SAP::get_handle. Referenced by ACE_LSOCK_Acceptor::accept, ACE_LSOCK_Connector::ACE_LSOCK_Connector, and ACE_LSOCK_Connector::connect.
00019 {
00020 ACE_TRACE ("ACE_LSOCK_Stream::get_handle");
00021 return this->ACE_SOCK_Stream::get_handle ();
00022 }
|
|
|
This method simply returns the "local" addr.
Reimplemented from ACE_SOCK. Definition at line 19 of file LSOCK_Stream.cpp. References ACE_TRACE, and ACE_SOCK::get_local_addr. Referenced by get_remote_addr.
00020 {
00021 ACE_TRACE ("ACE_LSOCK_Stream::get_local_addr");
00022
00023 // Perform the downcast since <addr> had better be an
00024 // <ACE_UNIX_Addr>.
00025 ACE_UNIX_Addr *rhs_unix_addr = ACE_dynamic_cast (ACE_UNIX_Addr *, &addr);
00026 ACE_UNIX_Addr lhs_unix_addr;
00027
00028 if (rhs_unix_addr == 0)
00029 return -1;
00030 else if (ACE_SOCK::get_local_addr (lhs_unix_addr) == -1)
00031 return -1;
00032 else
00033 {
00034 *rhs_unix_addr = lhs_unix_addr;
00035 return 0;
00036 }
00037 }
|
|
|
This method returns the "local" addr since it's the same value for UNIX domain sockets.
Reimplemented from ACE_SOCK. Definition at line 40 of file LSOCK_Stream.cpp. References ACE_TRACE, and get_local_addr.
00041 {
00042 ACE_TRACE ("ACE_LSOCK_Stream::get_remote_addr");
00043
00044 return this->get_local_addr (addr);
00045 }
|
|
||||||||||||||||
|
Send iovecs via <writev>.
|
|
||||||||||||||||
|
Send iovecs via <writev>.
|
|
|
Overrides set_handle from the base classes.
Reimplemented from ACE_LSOCK. Definition at line 10 of file LSOCK_Stream.i. References ACE_TRACE, ACE_LSOCK::set_handle, and ACE_IPC_SAP::set_handle. Referenced by ACE_LSOCK_Acceptor::accept, ACE_LSOCK_Connector::ACE_LSOCK_Connector, and ACE_LSOCK_Connector::connect.
00011 {
00012 ACE_TRACE ("ACE_LSOCK_Stream::set_handle");
00013 this->ACE_SOCK_Stream::set_handle (fd);
00014 this->ACE_LSOCK::set_handle (fd);
00015 }
|
|
|
Declare the dynamic allocation hooks.
Reimplemented from ACE_LSOCK. Definition at line 62 of file LSOCK_Stream.h. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002