Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / UPIPE_Connector.inl
blobfa43dbea3260ec9c658724c53147a6d06d4d7b0f
1 // -*- C++ -*-
2 //
3 // $Id: UPIPE_Connector.inl 80826 2008-03-04 14:51:23Z wotte $
5 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
7 // Creates a Local ACE_UPIPE.
8 ACE_INLINE
9 ACE_UPIPE_Connector::ACE_UPIPE_Connector (ACE_UPIPE_Stream &new_stream,
10                                           const ACE_UPIPE_Addr &addr,
11                                           ACE_Time_Value *timeout,
12                                           const ACE_Addr &local_sap,
13                                           int reuse_addr,
14                                           int flags,
15                                           int perms)
17   ACE_TRACE ("ACE_UPIPE_Connector::ACE_UPIPE_Connector");
18   if (this->connect (new_stream, addr, timeout, local_sap,
19                      reuse_addr, flags, perms) == -1
20       && timeout != 0 && !(errno == EWOULDBLOCK || errno == ETIME))
21     ACE_ERROR ((LM_ERROR,
22                 ACE_TEXT ("address %s, %p\n"),
23                 addr.get_path_name (),
24                 ACE_TEXT ("ACE_UPIPE_Connector")));
27 ACE_INLINE int
28 ACE_UPIPE_Connector::reset_new_handle (ACE_HANDLE /* handle */)
30   // Nothing to do here since the handle is not a socket
31   return 0;
34 ACE_END_VERSIONED_NAMESPACE_DECL