diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-06-16 07:58:09 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-06-16 07:58:09 +0000 |
commit | 5db6a116406b02ad826677d56474373139b5e461 (patch) | |
tree | a52a3ebe70100dd6ee98945618918994ed8f30cc /ace/LSOCK_Connector.inl | |
parent | 393a25f7bd25beca509700ba1a568442c1a0921c (diff) | |
download | ATCD-5db6a116406b02ad826677d56474373139b5e461.tar.gz |
ChangeLogTag: Wed Jun 16 07:56:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ace/LSOCK_Connector.inl')
-rw-r--r-- | ace/LSOCK_Connector.inl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ace/LSOCK_Connector.inl b/ace/LSOCK_Connector.inl new file mode 100644 index 00000000000..3638a687297 --- /dev/null +++ b/ace/LSOCK_Connector.inl @@ -0,0 +1,24 @@ +/* -*- C++ -*- */ +// $Id$ + +// Establish a connection. + +ACE_INLINE int +ACE_LSOCK_Connector::connect (ACE_LSOCK_Stream &new_stream, + const ACE_UNIX_Addr &remote_sap, + ACE_Time_Value *timeout, + const ACE_Addr &local_sap, + int reuse_addr, + int flags, + int perms) +{ + ACE_TRACE ("ACE_LSOCK_Connector::connect"); + int result = ACE_SOCK_Connector::connect (new_stream, remote_sap, + timeout, local_sap, + reuse_addr, flags, perms); + if (result != -1) + // This is necessary due to the weird inheritance relationships of ACE_LSOCK_Stream. + new_stream.set_handle (new_stream.get_handle ()); + return result; +} + |