1 #include "ace/LSOCK_Connector.h"
2 #if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
4 #include "ace/Log_Category.h"
5 #if defined (ACE_HAS_ALLOC_HOOKS)
6 # include "ace/Malloc_Base.h"
7 #endif /* ACE_HAS_ALLOC_HOOKS */
9 #if !defined (__ACE_INLINE__)
10 #include "ace/LSOCK_Connector.inl"
11 #endif /* __ACE_INLINE__ */
13 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
15 ACE_ALLOC_HOOK_DEFINE(ACE_LSOCK_Connector
)
18 ACE_LSOCK_Connector::dump () const
20 #if defined (ACE_HAS_DUMP)
21 ACE_TRACE ("ACE_LSOCK_Connector::dump");
23 ACELIB_DEBUG ((LM_DEBUG
, ACE_BEGIN_DUMP
, this));
24 ACELIB_DEBUG ((LM_DEBUG
, ACE_TEXT ("\n")));
25 ACELIB_DEBUG ((LM_DEBUG
, ACE_END_DUMP
));
26 #endif /* ACE_HAS_DUMP */
29 ACE_LSOCK_Connector::ACE_LSOCK_Connector ()
31 ACE_TRACE ("ACE_LSOCK_Connector::ACE_LSOCK_Connector");
34 // Establish a connection.
35 ACE_LSOCK_Connector::ACE_LSOCK_Connector (ACE_LSOCK_Stream
&new_stream
,
36 const ACE_UNIX_Addr
&remote_sap
,
37 ACE_Time_Value
*timeout
,
38 const ACE_Addr
&local_sap
,
42 : ACE_SOCK_Connector (new_stream
,
50 ACE_TRACE ("ACE_LSOCK_Connector::ACE_LSOCK_Connector");
51 // This is necessary due to the weird inheritance relationships of
53 new_stream
.set_handle (new_stream
.get_handle ());
56 ACE_END_VERSIONED_NAMESPACE_DECL
58 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */