Document return values
[ACE_TAO.git] / ACE / ace / DEV_Connector.inl
blobb92b4d2a5a319571422d09058f0c1e683eb59b96
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 // Creates a Local ACE_DEV.
6 ACE_INLINE
7 ACE_DEV_Connector::ACE_DEV_Connector (ACE_DEV_IO &new_io,
8                                       const ACE_DEV_Addr &remote_sap,
9                                       ACE_Time_Value *timeout,
10                                       const ACE_Addr &local_sap,
11                                       int reuse_addr,
12                                       int flags,
13                                       int perms)
15   ACE_TRACE ("ACE_DEV_Connector::ACE_DEV_Connector");
16   if (this->connect (new_io, remote_sap, timeout, local_sap,
17                      reuse_addr, flags, perms) == ACE_IO_SAP::INVALID_HANDLE
18       && timeout != 0 && !(errno == EWOULDBLOCK || errno == ETIME))
19     ACELIB_ERROR ((LM_ERROR, ACE_TEXT ("address %s, %p\n"),
20                     remote_sap.get_path_name (), ACE_TEXT ("ACE_DEV_IO")));
23 ACE_INLINE bool
24 ACE_DEV_Connector::reset_new_handle (ACE_HANDLE)
26   // Nothing to do here since the handle is not a socket
27   return false;
30 ACE_END_VERSIONED_NAMESPACE_DECL