GitHub Actions: Try MSVC builds with /std:c++17 and 20
[ACE_TAO.git] / ACE / ace / LSOCK_Connector.inl
blobfa519c21558f6f957e6193fe8347b9fa28070db7
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 // Establish a connection.
5 ACE_INLINE int
6 ACE_LSOCK_Connector::connect (ACE_LSOCK_Stream &new_stream,
7                               const ACE_UNIX_Addr &remote_sap,
8                               ACE_Time_Value *timeout,
9                               const ACE_Addr &local_sap,
10                               int reuse_addr,
11                               int flags,
12                               int perms)
14   ACE_TRACE ("ACE_LSOCK_Connector::connect");
15   int result = ACE_SOCK_Connector::connect (new_stream, remote_sap,
16                                             timeout, local_sap,
17                                             reuse_addr, flags, perms);
18   if (result != -1)
19     // This is necessary due to the weird inheritance relationships of ACE_LSOCK_Stream.
20     new_stream.set_handle (new_stream.get_handle ());
21   return result;
24 ACE_END_VERSIONED_NAMESPACE_DECL