diff options
Diffstat (limited to 'tests/Enum_Interfaces_Test.cpp')
-rw-r--r-- | tests/Enum_Interfaces_Test.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/tests/Enum_Interfaces_Test.cpp b/tests/Enum_Interfaces_Test.cpp index b9bd438c6c0..71f409dfae9 100644 --- a/tests/Enum_Interfaces_Test.cpp +++ b/tests/Enum_Interfaces_Test.cpp @@ -10,10 +10,11 @@ // Enum_interfaces.cpp // // = DESCRIPTION -// This is a simple test of <ACE::get_ip_interfaces>. This call -// retrieves the IP addresses assigned to the host by -// interrogating the kernel. Network applications typically -// assume gethostbyname(uname()) will work, but this is just a +// This is a simple test of +// <ACE_Sock_Connection::get_ip_interfaces>. This call retrieves +// the IP addresses assigned to the host by interrogating the +// kernel. Network applications typically assume +// gethostbyname(uname()) will work, but this is just a // convention. It is also problematic if the resolver code // (DNS/NIS+...) is misconfigured. This happens more than // programmers realize. It is better to find out by asking the @@ -48,26 +49,27 @@ run_main (int, ACE_TCHAR *[]) ACE_INET_Addr *the_addr_array; size_t how_many = 0; - int rc = ACE::get_ip_interfaces (how_many, the_addr_array); + int rc = ACE_Sock_Connect::get_ip_interfaces (how_many, the_addr_array); if (rc != 0) ACE_ERROR ((LM_ERROR, - ACE_TEXT ("%p\n"), - ACE_TEXT ("ACE::get_ip_interfaces failed"))); + ACE_TEXT ("%p\n"), + ACE_TEXT ("ACE_Sock_Connect::get_ip_interfaces failed"))); else if (how_many == 0) ACE_ERROR ((LM_ERROR, - ACE_TEXT ("No interfaces presently configured in the kernel\n"))); + ACE_TEXT ("No interfaces presently configured in the kernel\n"))); else { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("there are %d interfaces\n"), how_many)); for (size_t i = 0; i < how_many; i++) - ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\t%s\n"), + ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\t%s\n"), ACE_TEXT_CHAR_TO_TCHAR (the_addr_array[i].get_host_addr ()))); delete [] the_addr_array; } ACE_END_TEST; - return rc != 0; // return 1 if get_ip_interfaces() failed + return rc != 0; // return 1 if get_ip_interfaces() failed } + |