Defines the format and interface for the connector side of the ACE_LSOCK_Stream. More...
#include <LSOCK_Connector.h>
Public Types | |
typedef ACE_UNIX_Addr | PEER_ADDR |
typedef ACE_LSOCK_Stream | PEER_STREAM |
Public Member Functions | |
ACE_LSOCK_Connector (void) | |
Default constructor. | |
ACE_LSOCK_Connector (ACE_LSOCK_Stream &new_stream, const ACE_UNIX_Addr &remote_sap, ACE_Time_Value *timeout=0, const ACE_Addr &local_sap=ACE_Addr::sap_any, int reuse_addr=0, int flags=0, int perms=0) | |
int | connect (ACE_LSOCK_Stream &new_stream, const ACE_UNIX_Addr &remote_sap, ACE_Time_Value *timeout=0, const ACE_Addr &local_sap=ACE_Addr::sap_any, int reuse_addr=0, int flags=0, int perms=0) |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. |
Defines the format and interface for the connector side of the ACE_LSOCK_Stream.
Definition at line 37 of file LSOCK_Connector.h.
Reimplemented from ACE_SOCK_Connector.
Definition at line 73 of file LSOCK_Connector.h.
Reimplemented from ACE_SOCK_Connector.
Definition at line 74 of file LSOCK_Connector.h.
ACE_LSOCK_Connector::ACE_LSOCK_Connector | ( | void | ) |
Default constructor.
Definition at line 30 of file LSOCK_Connector.cpp.
{ ACE_TRACE ("ACE_LSOCK_Connector::ACE_LSOCK_Connector"); }
ACE_LSOCK_Connector::ACE_LSOCK_Connector | ( | ACE_LSOCK_Stream & | new_stream, | |
const ACE_UNIX_Addr & | remote_sap, | |||
ACE_Time_Value * | timeout = 0 , |
|||
const ACE_Addr & | local_sap = ACE_Addr::sap_any , |
|||
int | reuse_addr = 0 , |
|||
int | flags = 0 , |
|||
int | perms = 0 | |||
) |
Actively connect and produce a new_stream if things go well. All arguments are relayed to the ACE_SOCK_Connector constructor for handling.
Definition at line 36 of file LSOCK_Connector.cpp.
: ACE_SOCK_Connector (new_stream, remote_sap, timeout, local_sap, reuse_addr, flags, perms) { ACE_TRACE ("ACE_LSOCK_Connector::ACE_LSOCK_Connector"); // This is necessary due to the weird inheritance relationships of // ACE_LSOCK_Stream. new_stream.set_handle (new_stream.get_handle ()); }
int ACE_LSOCK_Connector::connect | ( | ACE_LSOCK_Stream & | new_stream, | |
const ACE_UNIX_Addr & | remote_sap, | |||
ACE_Time_Value * | timeout = 0 , |
|||
const ACE_Addr & | local_sap = ACE_Addr::sap_any , |
|||
int | reuse_addr = 0 , |
|||
int | flags = 0 , |
|||
int | perms = 0 | |||
) | [inline] |
Actively connect and produce a new_stream if things go well. The ACE_SOCK_Connector::connect()
method is called to perform the actual connection attempt.
Definition at line 9 of file LSOCK_Connector.inl.
{ ACE_TRACE ("ACE_LSOCK_Connector::connect"); int result = ACE_SOCK_Connector::connect (new_stream, remote_sap, timeout, local_sap, reuse_addr, flags, perms); if (result != -1) // This is necessary due to the weird inheritance relationships of ACE_LSOCK_Stream. new_stream.set_handle (new_stream.get_handle ()); return result; }
void ACE_LSOCK_Connector::dump | ( | void | ) | const |
Dump the state of an object.
Reimplemented from ACE_SOCK_Connector.
Definition at line 19 of file LSOCK_Connector.cpp.
{ #if defined (ACE_HAS_DUMP) ACE_TRACE ("ACE_LSOCK_Connector::dump"); ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\n"))); ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); #endif /* ACE_HAS_DUMP */ }
Declare the dynamic allocation hooks.
Reimplemented from ACE_SOCK_Connector.
Definition at line 80 of file LSOCK_Connector.h.