GitHub Actions: Try MSVC builds with /std:c++17 and 20
[ACE_TAO.git] / ACE / ace / LSOCK_Connector.cpp
bloba7c9b2e718cce62fd0d5cabc25a8c4593cbd1003
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 */
12 #if !defined (__ACE_INLINE__)
13 #include "ace/LSOCK_Connector.inl"
14 #endif /* __ACE_INLINE__ */
16 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
18 ACE_ALLOC_HOOK_DEFINE(ACE_LSOCK_Connector)
20 void
21 ACE_LSOCK_Connector::dump (void) const
23 #if defined (ACE_HAS_DUMP)
24 ACE_TRACE ("ACE_LSOCK_Connector::dump");
26 ACELIB_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
27 ACELIB_DEBUG ((LM_DEBUG, ACE_TEXT ("\n")));
28 ACELIB_DEBUG ((LM_DEBUG, ACE_END_DUMP));
29 #endif /* ACE_HAS_DUMP */
32 ACE_LSOCK_Connector::ACE_LSOCK_Connector (void)
34 ACE_TRACE ("ACE_LSOCK_Connector::ACE_LSOCK_Connector");
37 // Establish a connection.
38 ACE_LSOCK_Connector::ACE_LSOCK_Connector (ACE_LSOCK_Stream &new_stream,
39 const ACE_UNIX_Addr &remote_sap,
40 ACE_Time_Value *timeout,
41 const ACE_Addr &local_sap,
42 int reuse_addr,
43 int flags,
44 int perms)
45 : ACE_SOCK_Connector (new_stream,
46 remote_sap,
47 timeout,
48 local_sap,
49 reuse_addr,
50 flags,
51 perms)
53 ACE_TRACE ("ACE_LSOCK_Connector::ACE_LSOCK_Connector");
54 // This is necessary due to the weird inheritance relationships of
55 // ACE_LSOCK_Stream.
56 new_stream.set_handle (new_stream.get_handle ());
59 ACE_END_VERSIONED_NAMESPACE_DECL
61 #endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */