diff options
author | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-27 14:52:31 +0000 |
---|---|---|
committer | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-27 14:52:31 +0000 |
commit | cbb06ca3d6abc40e0a6169ea0c91641ed2c42586 (patch) | |
tree | 9285224ad03fbfe40384ed55774aac56cad1576f /examples/IPC_SAP | |
parent | a1323187c3a1bb4ac8715a608b7660f5917ce6f6 (diff) | |
download | ATCD-cbb06ca3d6abc40e0a6169ea0c91641ed2c42586.tar.gz |
Changing tests to print out VPI and VCI when connected
Diffstat (limited to 'examples/IPC_SAP')
-rw-r--r-- | examples/IPC_SAP/ATM_SAP/CPP-client.cpp | 6 | ||||
-rw-r--r-- | examples/IPC_SAP/ATM_SAP/CPP-server.cpp | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/examples/IPC_SAP/ATM_SAP/CPP-client.cpp b/examples/IPC_SAP/ATM_SAP/CPP-client.cpp index 71eca9f9790..0410b9f62bb 100644 --- a/examples/IPC_SAP/ATM_SAP/CPP-client.cpp +++ b/examples/IPC_SAP/ATM_SAP/CPP-client.cpp @@ -115,6 +115,12 @@ int main (int argc, char *argv[]) remote_addr.addr_to_string ())); } + ACE_UINT16 vpi, vci; + atm_stream.get_vpi_vci(vpi, vci); + ACE_DEBUG ((LM_DEBUG, + "connected to VPI %d VCI %d\n", + vpi, vci)); + // Send data to server (correctly handles "incomplete writes"). for (int r_bytes; diff --git a/examples/IPC_SAP/ATM_SAP/CPP-server.cpp b/examples/IPC_SAP/ATM_SAP/CPP-server.cpp index 5615ecf133f..f04d5bc8b07 100644 --- a/examples/IPC_SAP/ATM_SAP/CPP-server.cpp +++ b/examples/IPC_SAP/ATM_SAP/CPP-server.cpp @@ -78,6 +78,12 @@ main (int argc, char *argv[]) "client %s connected\n", addr.addr_to_string ())); + ACE_UINT16 vpi, vci; + new_stream.get_vpi_vci(vpi, vci); + ACE_DEBUG ((LM_DEBUG, + "connected to VPI %d VCI %d\n", + vpi, vci)); + ACE_DEBUG ((LM_DEBUG, "client %s connected to host\n", new_stream.get_peer_name ())); |