diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-10-21 21:41:34 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-10-21 21:41:34 +0000 |
commit | a5fdebc5f6375078ec1763850a4ca23ec7fe6458 (patch) | |
tree | bcf0a25c3d45a209a6e3ac37b233a4812f29c732 /ace/LSOCK_Connector.cpp | |
download | ATCD-a5fdebc5f6375078ec1763850a4ca23ec7fe6458.tar.gz |
Initial revision
Diffstat (limited to 'ace/LSOCK_Connector.cpp')
-rw-r--r-- | ace/LSOCK_Connector.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/ace/LSOCK_Connector.cpp b/ace/LSOCK_Connector.cpp new file mode 100644 index 00000000000..07c1317d341 --- /dev/null +++ b/ace/LSOCK_Connector.cpp @@ -0,0 +1,49 @@ +// LSOCK_Connector.cpp +// $Id$ + +/* Defines the format and interface for the connector side of the + local ACE_SOCK ACE_Stream. */ + +#define ACE_BUILD_DLL +#include "ace/LSOCK_Connector.h" + +#if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS) + +ACE_ALLOC_HOOK_DEFINE(ACE_LSOCK_Connector) + +void +ACE_LSOCK_Connector::dump (void) const +{ + ACE_TRACE ("ACE_LSOCK_Connector::dump"); + + ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); + ACE_DEBUG ((LM_DEBUG, "\n")); + ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); +} + +ACE_LSOCK_Connector::ACE_LSOCK_Connector (void) +{ + ACE_TRACE ("ACE_LSOCK_Connector::ACE_LSOCK_Connector"); +} + +// Establish a connection. +ACE_LSOCK_Connector::ACE_LSOCK_Connector (ACE_LSOCK_Stream &new_stream, + const ACE_UNIX_Addr &remote_sap, + ACE_Time_Value *timeout, + const ACE_Addr &local_sap, + int reuse_addr, + int flags, + int perms, + int protocol_family, + int protocol) + : ACE_SOCK_Connector (new_stream, remote_sap, timeout, + local_sap, reuse_addr, flags, perms, + protocol_family, protocol) +{ + 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 ()); +} + +#endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */ |