Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / LSOCK_Connector.cpp
blob3a0f60640375265c06967df9f206ae4fc88722ad
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)
17 void
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,
39 int reuse_addr,
40 int flags,
41 int perms)
42 : ACE_SOCK_Connector (new_stream,
43 remote_sap,
44 timeout,
45 local_sap,
46 reuse_addr,
47 flags,
48 perms)
50 ACE_TRACE ("ACE_LSOCK_Connector::ACE_LSOCK_Connector");
51 // This is necessary due to the weird inheritance relationships of
52 // ACE_LSOCK_Stream.
53 new_stream.set_handle (new_stream.get_handle ());
56 ACE_END_VERSIONED_NAMESPACE_DECL
58 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */