Files
azerothcore-wotlk/dep/acelite/ace/SOCK_Connector.inl
Yehonal e8e94a0a66 First Commit
For Azeroth!
2016-06-26 10:39:44 +02:00

36 lines
858 B
C++

// -*- C++ -*-
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// This constructor is used by a client when it wants to connect to
// the specified REMOTE_SAP address using a blocking open.
ACE_INLINE
ACE_SOCK_Connector::~ACE_SOCK_Connector (void)
{
ACE_TRACE ("ACE_SOCK_Connector::~ACE_SOCK_Connector");
}
// Do-nothing constructor...
ACE_INLINE
ACE_SOCK_Connector::ACE_SOCK_Connector (void)
{
ACE_TRACE ("ACE_SOCK_Connector::ACE_SOCK_Connector");
}
ACE_INLINE bool
ACE_SOCK_Connector::reset_new_handle (ACE_HANDLE handle)
{
#if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
// Reset the event association
return ::WSAEventSelect ((SOCKET) handle,
0,
0);
#else /* !defined ACE_HAS_WINSOCK2 */
ACE_UNUSED_ARG (handle);
return false;
#endif /* ACE_WIN32 */
}
ACE_END_VERSIONED_NAMESPACE_DECL