diff options
author | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-05-24 14:58:42 +0000 |
---|---|---|
committer | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-05-24 14:58:42 +0000 |
commit | 35dce870d8bad70fceb1009903690294cb6654ed (patch) | |
tree | b119c05b306fc054c054d13a68414805125566b9 /ace/ATM_Connector.h | |
parent | 983acdffb2500622dd3166e53693a6536a1331eb (diff) | |
download | ATCD-35dce870d8bad70fceb1009903690294cb6654ed.tar.gz |
Adding support for ATM on Linux. (Thanks to Pedro Brandao <pbrandao@inescn.pt>)
Diffstat (limited to 'ace/ATM_Connector.h')
-rw-r--r-- | ace/ATM_Connector.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/ace/ATM_Connector.h b/ace/ATM_Connector.h index 7f42588a7ed..b5f31b94325 100644 --- a/ace/ATM_Connector.h +++ b/ace/ATM_Connector.h @@ -28,7 +28,7 @@ #if defined (ACE_HAS_ATM) -#if defined (ACE_WIN32) +#if defined (ACE_WIN32) || defined (ACE_HAS_LINUX_ATM) #include "SOCK_Connector.h" typedef ACE_SOCK_Connector ATM_Connector; #else @@ -74,19 +74,20 @@ public: // the user is letting the OS do the binding. If <reuse_addr> == 1 // then the <local_addr> is reused, even if it hasn't been cleanedup yet. - connect (ACE_ATM_Stream &new_stream, - const ACE_ATM_Addr &remote_sap, - ACE_ATM_Params params = ACE_ATM_Params(), - ACE_ATM_QoS options = ACE_ATM_QoS(), - ACE_Time_Value *timeout = 0, - const ACE_ATM_Addr &local_sap = ACE_ATM_Addr( "", 0 ), - int reuse_addr = 0, + int connect (ACE_ATM_Stream &new_stream, + const ACE_ATM_Addr &remote_sap, + ACE_ATM_Params params = ACE_ATM_Params(), + ACE_ATM_QoS options = ACE_ATM_QoS(), + ACE_Time_Value *timeout = 0, + const ACE_ATM_Addr &local_sap = ACE_ATM_Addr( "", + 0 ), + int reuse_addr = 0, #if defined (ACE_WIN32) - int flags = 0, + int flags = 0, #else - int flags = O_RDWR, + int flags = O_RDWR, #endif /* ACE_WIN32 */ - int perms = 0); + int perms = 0); // Actively connect and produce a <new_stream> if things go well. // The <remote_sap> is the address that we are trying to connect // with. The <params> are the parameters needed for either socket @@ -124,6 +125,10 @@ public: int reset_new_handle (ACE_HANDLE handle); // Resets any event associations on this handle + // = Meta-type info + typedef ACE_ATM_Addr PEER_ADDR; + typedef ACE_ATM_Stream PEER_STREAM; + void dump (void) const; // Dump the state of an object. |