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


Public Types | |
| typedef ACE_UNIX_Addr | PEER_ADDR |
Public Member Functions | |
| ssize_t | send_msg (const iovec iov[], size_t n, ACE_HANDLE handle) |
| Send iovecs via <::writev>. | |
| ssize_t | recv_msg (iovec iov[], size_t n, ACE_HANDLE &handle) |
| Send iovecs via <::writev>. | |
| ACE_HANDLE | get_handle (void) const |
| Get handle. | |
| void | set_handle (ACE_HANDLE fd) |
| Overrides set_handle from the base classes. | |
| void | dump (void) const |
| Dump the state of an object. | |
| int | get_local_addr (ACE_Addr &) const |
| This method simply returns the "local" addr. | |
| int | get_remote_addr (ACE_Addr &) const |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. | |
Definition at line 37 of file LSOCK_Stream.h.
|
|
Reimplemented from ACE_SOCK_Stream. Definition at line 58 of file LSOCK_Stream.h. |
|
|
Dump the state of an object.
Reimplemented from ACE_LSOCK. Definition at line 49 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.
00050 {
00051 ACE_TRACE ("ACE_LSOCK_Stream::dump");
00052
00053 ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00054 ACE_SOCK_Stream::dump ();
00055 ACE_LSOCK::dump ();
00056 ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00057 }
|
|
|
Get handle.
Reimplemented from ACE_LSOCK. Definition at line 19 of file LSOCK_Stream.inl. 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().
00020 {
00021 ACE_TRACE ("ACE_LSOCK_Stream::get_handle");
00022 return this->ACE_SOCK_Stream::get_handle ();
00023 }
|
|
|
This method simply returns the "local" addr.
Reimplemented from ACE_SOCK. Definition at line 20 of file LSOCK_Stream.cpp. References ACE_TRACE, and ACE_SOCK::get_local_addr(). Referenced by get_remote_addr().
00021 {
00022 ACE_TRACE ("ACE_LSOCK_Stream::get_local_addr");
00023
00024 // Perform the downcast since <addr> had better be an
00025 // <ACE_UNIX_Addr>.
00026 ACE_UNIX_Addr *rhs_unix_addr = dynamic_cast<ACE_UNIX_Addr *> (&addr);
00027 ACE_UNIX_Addr lhs_unix_addr;
00028
00029 if (rhs_unix_addr == 0)
00030 return -1;
00031 else if (ACE_SOCK::get_local_addr (lhs_unix_addr) == -1)
00032 return -1;
00033 else
00034 {
00035 *rhs_unix_addr = lhs_unix_addr;
00036 return 0;
00037 }
00038 }
|
|
|
This method returns the "local" addr since it's the same value for UNIX domain sockets. Reimplemented from ACE_SOCK. Definition at line 41 of file LSOCK_Stream.cpp. References ACE_TRACE, and get_local_addr().
00042 {
00043 ACE_TRACE ("ACE_LSOCK_Stream::get_remote_addr");
00044
00045 return this->get_local_addr (addr);
00046 }
|
|
||||||||||||||||
|
Send iovecs via <::writev>.
|
|
||||||||||||||||
|
Send iovecs via <::writev>.
|
|
|
Overrides set_handle from the base classes.
Reimplemented from ACE_LSOCK. Definition at line 11 of file LSOCK_Stream.inl. 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().
00012 {
00013 ACE_TRACE ("ACE_LSOCK_Stream::set_handle");
00014 this->ACE_SOCK_Stream::set_handle (fd);
00015 this->ACE_LSOCK::set_handle (fd);
00016 }
|
|
|
Declare the dynamic allocation hooks.
Reimplemented from ACE_LSOCK. Definition at line 64 of file LSOCK_Stream.h. |
1.3.6