diff options
author | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-20 18:57:29 +0000 |
---|---|---|
committer | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-20 18:57:29 +0000 |
commit | eed3b96608876d777f13ccc48e9fda9b5d87048c (patch) | |
tree | fc4173d523fe46770982e79aa5040072b5c6f900 | |
parent | 62d8c29b4539ccb77178688b6ed7fea7f5800ef8 (diff) | |
download | ATCD-eed3b96608876d777f13ccc48e9fda9b5d87048c.tar.gz |
Adding ACE_XTI_ATM_DEVICE
-rw-r--r-- | examples/IPC_SAP/TLI_SAP/CPP-ATM-client.cpp | 9 | ||||
-rw-r--r-- | examples/IPC_SAP/TLI_SAP/CPP-ATM-server.cpp | 7 |
2 files changed, 10 insertions, 6 deletions
diff --git a/examples/IPC_SAP/TLI_SAP/CPP-ATM-client.cpp b/examples/IPC_SAP/TLI_SAP/CPP-ATM-client.cpp index 764ee8e6c52..650060f66d4 100644 --- a/examples/IPC_SAP/TLI_SAP/CPP-ATM-client.cpp +++ b/examples/IPC_SAP/TLI_SAP/CPP-ATM-client.cpp @@ -32,7 +32,7 @@ int main (int argc, char *argv[]) // In order to construct connections options the file handle is // needed. Therefore, we need to open the TLI_Stream before we // construct the options. - if (cli_stream.open (ACE_TLI_TCP_DEVICE, O_RDWR, 0) == -1) + if (cli_stream.open (ACE_XTI_ATM_DEVICE, O_RDWR, 0) == -1) ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "open failed"), @@ -55,16 +55,15 @@ int main (int argc, char *argv[]) optbuf.buf = options; // Not sure why but reuse_addr set to true/1 causes problems for - // FORE/XTI/ATM - this is now handled in - // ACE_TLI_Connector::connect() + // FORE/XTI/ATM - this is now handled in ACE_TLI_Connector::connect() if (con.connect (cli_stream, remote_addr, - (ACE_Time_Value *) &ACE_Time_Value::zero, + (ACE_Time_Value *) &ACE_Time_Value::zero, local_addr, 1, O_RDWR, 0, - ACE_TLI_TCP_DEVICE, + ACE_XTI_ATM_DEVICE, 0, 1, 0, diff --git a/examples/IPC_SAP/TLI_SAP/CPP-ATM-server.cpp b/examples/IPC_SAP/TLI_SAP/CPP-ATM-server.cpp index 8e3e13286b8..ce0cf78073a 100644 --- a/examples/IPC_SAP/TLI_SAP/CPP-ATM-server.cpp +++ b/examples/IPC_SAP/TLI_SAP/CPP-ATM-server.cpp @@ -21,7 +21,12 @@ main (int argc, char *argv[]) // Not sure why but reuse_addr set to true/1 causes problems for // FORE/XTI/ATM - this is now handled in ACE_TLI_Acceptor::open() - if (peer_acceptor.open (addr, 1) == -1) + if (peer_acceptor.open (addr, + 1, + O_RDWR, + 0, + 5, + ACE_XTI_ATM_DEVICE) == -1) ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "open"), |