Document return values
[ACE_TAO.git] / ACE / ace / TLI_Connector.inl
blobeac9d9a5848519aea7cf7d2c546e52310b2176e1
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE
5 ACE_TLI_Connector::ACE_TLI_Connector (ACE_TLI_Stream &new_stream,
6                   const ACE_Addr &remote_sap,
7                   ACE_Time_Value *timeout,
8                   const ACE_Addr &local_sap,
9                   int reuse_addr,
10                   int flags,
11                   int perms,
12                   const char device[],
13                   struct t_info *info,
14                   int rw_flag,
15                   struct netbuf *udata,
16                   struct netbuf *opt)
18   ACE_TRACE ("ACE_TLI_Connector::ACE_TLI_Connector");
19   if (this->connect (new_stream,
20                      remote_sap,
21                      timeout,
22                      local_sap,
23                      reuse_addr,
24                      flags,
25                      perms,
26                      device,
27                      info,
28                      rw_flag,
29                      udata,
30                      opt) == -1
31       && timeout != 0 && !(errno == EWOULDBLOCK || errno == ETIME))
32     ACELIB_ERROR ((LM_ERROR,
33                 ACE_TEXT ("%p\n"),
34                 ACE_TEXT ("ACE_TLI_Stream::ACE_TLI_Stream")));
37 ACE_INLINE
38 bool
39 ACE_TLI_Connector::reset_new_handle (ACE_HANDLE)
41   // Nothing to do here since the handle is not a socket
42   return false;
45 ACE_END_VERSIONED_NAMESPACE_DECL