Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

DEV_Connector.cpp

Go to the documentation of this file.
00001 #include "ace_pch.h"
00002 // DEV_Connector.cpp
00003 // $Id: DEV_Connector.cpp,v 1.1.1.3.40.1 2003/03/13 19:44:21 chad Exp $
00004 
00005 #include "ace/DEV_Connector.h"
00006 
00007 #if defined (ACE_LACKS_INLINE_FUNCTIONS)
00008 #include "ace/DEV_Connector.i"
00009 #endif
00010 
00011 ACE_RCSID(ace, DEV_Connector, "$Id: DEV_Connector.cpp,v 1.1.1.3.40.1 2003/03/13 19:44:21 chad Exp $")
00012 
00013 ACE_ALLOC_HOOK_DEFINE(ACE_DEV_Connector)
00014 
00015 void
00016 ACE_DEV_Connector::dump (void) const
00017 {
00018   ACE_TRACE ("ACE_DEV_Connector::dump");
00019 }
00020 
00021 ACE_DEV_Connector::ACE_DEV_Connector (void)
00022 {
00023   ACE_TRACE ("ACE_DEV_Connector::ACE_DEV_Connector");
00024 }
00025 
00026 int
00027 ACE_DEV_Connector::connect (ACE_DEV_IO &new_io, 
00028                             const ACE_DEV_Addr &remote_sap,
00029                             ACE_Time_Value *timeout,
00030                             const ACE_Addr &, 
00031                             int,
00032                             int flags,
00033                             int perms)
00034 {
00035   ACE_TRACE ("ACE_DEV_Connector::connect");
00036 
00037   ACE_HANDLE handle = ACE_Handle_Ops::handle_timed_open (timeout, 
00038                                               remote_sap.get_path_name (),
00039                                               flags, perms);
00040   new_io.set_handle (handle);
00041   new_io.addr_ = remote_sap; // class copy.
00042   return handle == ACE_INVALID_HANDLE ? -1 : 0;
00043 }
00044 

Generated on Mon Jun 16 11:19:34 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002