diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-04-12 01:02:34 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-04-12 01:02:34 +0000 |
commit | 2996933cc12d5493d68fad3873a45c3aabba3e18 (patch) | |
tree | eca5b8bdef0a38fe4736df3c33f73da99ab487bb /ace/SPIPE_Connector.cpp | |
parent | 55c07b3e66734053a180f1d0ebb644ea6fa3c3bf (diff) | |
download | ATCD-Current.tar.gz |
This commit was manufactured by cvs2svn to create tag 'Current'.Current
Diffstat (limited to 'ace/SPIPE_Connector.cpp')
-rw-r--r-- | ace/SPIPE_Connector.cpp | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/ace/SPIPE_Connector.cpp b/ace/SPIPE_Connector.cpp deleted file mode 100644 index 947a888076c..00000000000 --- a/ace/SPIPE_Connector.cpp +++ /dev/null @@ -1,68 +0,0 @@ -// SPIPE_Connector.cpp -// $Id$ - -#define ACE_BUILD_DLL -#include "ace/SPIPE_Connector.h" - -ACE_ALLOC_HOOK_DEFINE(ACE_SPIPE_Connector) - -// Creates a Local ACE_SPIPE. - -ACE_SPIPE_Connector::ACE_SPIPE_Connector (ACE_SPIPE_Stream &new_io, - const ACE_SPIPE_Addr &remote_sap, - ACE_Time_Value *timeout, - const ACE_Addr & local_sap, - int reuse_addr, - int flags, - int perms) -{ - ACE_TRACE ("ACE_SPIPE_Connector::ACE_SPIPE_Connector"); - if (this->connect (new_io, remote_sap, timeout, local_sap, - reuse_addr, flags, perms) == -1 - && timeout != 0 && !(errno == EWOULDBLOCK || errno == ETIME)) - ACE_ERROR ((LM_ERROR, "address %s, %p\n", - remote_sap.get_path_name (), "ACE_SPIPE_Connector")); -} - -void -ACE_SPIPE_Connector::dump (void) const -{ - ACE_TRACE ("ACE_SPIPE_Connector::dump"); -} - -ACE_SPIPE_Connector::ACE_SPIPE_Connector (void) -{ - ACE_TRACE ("ACE_SPIPE_Connector::ACE_SPIPE_Connector"); -} - -int -ACE_SPIPE_Connector::connect (ACE_SPIPE_Stream &new_io, - const ACE_SPIPE_Addr &remote_sap, - ACE_Time_Value *timeout, - const ACE_Addr & /* local_sap */, - int /* reuse_addr */, - int flags, - int perms) -{ - ACE_TRACE ("ACE_SPIPE_Connector::connect"); - - // Make darn sure that the O_CREAT flag is not set! - ACE_CLR_BITS (flags, O_CREAT); - ACE_HANDLE handle = ACE::handle_timed_open (timeout, - remote_sap.get_path_name (), - flags, perms); - new_io.set_handle (handle); - new_io.remote_addr_ = remote_sap; // class copy. - -#if defined (ACE_WIN32) - DWORD pipe_mode = PIPE_READMODE_MESSAGE | PIPE_WAIT; - - // Set named pipe mode and buffering characteristics. - if (handle != ACE_INVALID_HANDLE) - return ::SetNamedPipeHandleState (handle, - &pipe_mode, - NULL, - NULL); -#endif - return handle == ACE_INVALID_HANDLE ? -1 : 0; -} |