Document return values
[ACE_TAO.git] / ACE / ace / UPIPE_Connector.inl
blobcbb55a4864dd0d9fc5456acdf3d74fa126acda2f
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 // Creates a Local ACE_UPIPE.
5 ACE_INLINE
6 ACE_UPIPE_Connector::ACE_UPIPE_Connector (ACE_UPIPE_Stream &new_stream,
7                                           const ACE_UPIPE_Addr &addr,
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_UPIPE_Connector::ACE_UPIPE_Connector");
15   if (this->connect (new_stream, addr, timeout, local_sap,
16                      reuse_addr, flags, perms) == -1
17       && timeout != 0 && !(errno == EWOULDBLOCK || errno == ETIME))
18     ACELIB_ERROR ((LM_ERROR,
19                 ACE_TEXT ("address %s, %p\n"),
20                 addr.get_path_name (),
21                 ACE_TEXT ("ACE_UPIPE_Connector")));
24 ACE_INLINE bool
25 ACE_UPIPE_Connector::reset_new_handle (ACE_HANDLE /* handle */)
27   // Nothing to do here since the handle is not a socket
28   return false;
31 ACE_END_VERSIONED_NAMESPACE_DECL