diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-11-19 08:40:28 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-11-19 08:40:28 +0000 |
commit | dee899c8ff99fe26e308f713e728db4dff2882c7 (patch) | |
tree | 93ac25cea28e28f3892623e98e3657d2597bb550 /ace/Asynch_IO.cpp | |
parent | 33dcb4d2015f14836d30cb0cd9210a1b9fd25107 (diff) | |
download | ATCD-Validator_20021119.tar.gz |
This commit was manufactured by cvs2svn to create tagValidator_20021119
'Validator_20021119'.
Diffstat (limited to 'ace/Asynch_IO.cpp')
-rw-r--r-- | ace/Asynch_IO.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/ace/Asynch_IO.cpp b/ace/Asynch_IO.cpp index 25c7610c60a..6149f8daf1e 100644 --- a/ace/Asynch_IO.cpp +++ b/ace/Asynch_IO.cpp @@ -1197,9 +1197,20 @@ ACE_Service_Handler::~ACE_Service_Handler (void) } void -ACE_Service_Handler::addresses (const ACE_INET_Addr & /* remote_address */, - const ACE_INET_Addr & /* local_address */ ) +ACE_Service_Handler::addresses (const ACE_INET_Addr &remote_address, + const ACE_INET_Addr &local_address) { + // Default behavior is to print out the addresses. + ACE_TCHAR local_address_buf[BUFSIZ], remote_address_buf[BUFSIZ]; + if (local_address.addr_to_string (local_address_buf, sizeof local_address_buf) == -1) + ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("can't obtain local_address's address string"))); + + if (remote_address.addr_to_string (remote_address_buf, sizeof remote_address_buf) == -1) + ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("can't obtain remote_address's address string"))); + + ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("On fd %d\n"), this->handle ())); + ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("local address %s\n"), local_address_buf)); + ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("remote address %s\n"), remote_address_buf)); } void |