From cbb06ca3d6abc40e0a6169ea0c91641ed2c42586 Mon Sep 17 00:00:00 2001 From: joeh Date: Fri, 27 Aug 1999 14:52:31 +0000 Subject: Changing tests to print out VPI and VCI when connected --- examples/IPC_SAP/ATM_SAP/CPP-client.cpp | 6 ++++++ examples/IPC_SAP/ATM_SAP/CPP-server.cpp | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'examples/IPC_SAP/ATM_SAP') 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 ())); -- cgit v1.2.1