mirror of
https://github.com/mangosfour/server.git
synced 2025-12-30 10:37:12 +00:00
Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/
This commit is contained in:
parent
d767495d5b
commit
800ee76535
3322 changed files with 903437 additions and 0 deletions
53
dep/ACE_wrappers/ace/DEV_Connector.cpp
Normal file
53
dep/ACE_wrappers/ace/DEV_Connector.cpp
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
// $Id: DEV_Connector.cpp 80826 2008-03-04 14:51:23Z wotte $
|
||||
|
||||
#include "ace/DEV_Connector.h"
|
||||
|
||||
#include "ace/Handle_Ops.h"
|
||||
|
||||
#if !defined (__ACE_INLINE__)
|
||||
#include "ace/DEV_Connector.inl"
|
||||
#endif /* __ACE_INLINE__ */
|
||||
|
||||
|
||||
ACE_RCSID (ace,
|
||||
DEV_Connector,
|
||||
"$Id: DEV_Connector.cpp 80826 2008-03-04 14:51:23Z wotte $")
|
||||
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
ACE_ALLOC_HOOK_DEFINE(ACE_DEV_Connector)
|
||||
|
||||
void
|
||||
ACE_DEV_Connector::dump (void) const
|
||||
{
|
||||
#if defined (ACE_HAS_DUMP)
|
||||
ACE_TRACE ("ACE_DEV_Connector::dump");
|
||||
#endif /* ACE_HAS_DUMP */
|
||||
}
|
||||
|
||||
ACE_DEV_Connector::ACE_DEV_Connector (void)
|
||||
{
|
||||
ACE_TRACE ("ACE_DEV_Connector::ACE_DEV_Connector");
|
||||
}
|
||||
|
||||
int
|
||||
ACE_DEV_Connector::connect (ACE_DEV_IO &new_io,
|
||||
const ACE_DEV_Addr &remote_sap,
|
||||
ACE_Time_Value *timeout,
|
||||
const ACE_Addr &,
|
||||
int,
|
||||
int flags,
|
||||
int perms)
|
||||
{
|
||||
ACE_TRACE ("ACE_DEV_Connector::connect");
|
||||
|
||||
ACE_HANDLE handle = ACE::handle_timed_open (timeout,
|
||||
remote_sap.get_path_name (),
|
||||
flags, perms);
|
||||
new_io.set_handle (handle);
|
||||
new_io.addr_ = remote_sap; // class copy.
|
||||
return handle == ACE_INVALID_HANDLE ? -1 : 0;
|
||||
}
|
||||
|
||||
ACE_END_VERSIONED_NAMESPACE_DECL
|
||||
Loading…
Add table
Add a link
Reference in a new issue