diff options
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 ())); |