diff options
Diffstat (limited to 'ace/DEV_Connector.inl')
-rw-r--r-- | ace/DEV_Connector.inl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ace/DEV_Connector.inl b/ace/DEV_Connector.inl new file mode 100644 index 00000000000..798639197b4 --- /dev/null +++ b/ace/DEV_Connector.inl @@ -0,0 +1,30 @@ +/* -*- C++ -*- */ +// $Id$ + +// Creates a Local ACE_DEV. + +ACE_INLINE +ACE_DEV_Connector::ACE_DEV_Connector (ACE_DEV_IO &new_io, + const ACE_DEV_Addr &remote_sap, + ACE_Time_Value *timeout, + const ACE_Addr &local_sap, + int reuse_addr, + int flags, + int perms) +{ + ACE_TRACE ("ACE_DEV_Connector::ACE_DEV_Connector"); + if (this->connect (new_io, remote_sap, timeout, local_sap, + reuse_addr, flags, perms) == ACE_IO_SAP::INVALID_HANDLE + && timeout != 0 && !(errno == EWOULDBLOCK || errno == ETIME)) + ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("address %s, %p\n"), + remote_sap.get_path_name (), ACE_LIB_TEXT ("ACE_DEV_IO"))); +} + +ACE_INLINE int +ACE_DEV_Connector::reset_new_handle (ACE_HANDLE handle) +{ + ACE_UNUSED_ARG (handle); + // Nothing to do here since the handle is not a socket + return 0; +} + |