diff options
author | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-01-18 15:40:48 +0000 |
---|---|---|
committer | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-01-18 15:40:48 +0000 |
commit | 3e690e2ec5858f4e71814d214ab447578e03a9b8 (patch) | |
tree | 67e4e8b8ed446e45446629212e6c20c6310831f0 /tests | |
parent | c9e960efc0e7677408df14cbb0e3e2c26e9f8697 (diff) | |
download | ATCD-3e690e2ec5858f4e71814d214ab447578e03a9b8.tar.gz |
ChangeLogTag:Sun Jan 18 09:40:04 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/SOCK_Send_Recv_Test_IPV6.cpp | 11 | ||||
-rw-r--r-- | tests/SOCK_Test_IPv6.cpp | 7 |
2 files changed, 5 insertions, 13 deletions
diff --git a/tests/SOCK_Send_Recv_Test_IPV6.cpp b/tests/SOCK_Send_Recv_Test_IPV6.cpp index b23752eed01..a38aea1c9a1 100644 --- a/tests/SOCK_Send_Recv_Test_IPV6.cpp +++ b/tests/SOCK_Send_Recv_Test_IPV6.cpp @@ -43,20 +43,15 @@ const size_t Test3_Loops = 10; const size_t Test3_Total_Size = Test3_Send_Size * Test3_Loops; +#if defined (ACE_HAS_IPV6) + static void * client (void *arg) { ACE_INET_Addr *remote_addr = ACE_reinterpret_cast (ACE_INET_Addr *, arg); -#if defined (ACE_HAS_IPV6) ACE_INET_Addr server_addr (remote_addr->get_port_number (), ACE_IPV6_LOCALHOST); -#else - - ACE_INET_Addr server_addr (remote_addr->get_port_number (), - ACE_LOCALHOST); -#endif /*ACE_HAS_IPV6*/ - ACE_SOCK_Stream cli_stream; ACE_SOCK_Connector con; @@ -312,6 +307,8 @@ server (void *arg) return 0; } +#endif /*ACE_HAS_IPV6*/ + #endif /* !ACE_LACKS_FORK || ACE_HAS_THREADS */ #if defined (ACE_HAS_IPV6) diff --git a/tests/SOCK_Test_IPv6.cpp b/tests/SOCK_Test_IPv6.cpp index eb5ac373337..bd92bf84173 100644 --- a/tests/SOCK_Test_IPv6.cpp +++ b/tests/SOCK_Test_IPv6.cpp @@ -27,17 +27,13 @@ static const char ACE_ALPHABET[] = "abcdefghijklmnopqrstuvwxyz"; +#if defined (ACE_HAS_IPV6) static void * client (void *arg) { ACE_INET_Addr *remote_addr = (ACE_INET_Addr *) arg; -#if defined (ACE_HAS_IPV6) ACE_INET_Addr server_addr (remote_addr->get_port_number (), ACE_IPV6_LOCALHOST); -#else - ACE_INET_Addr server_addr (remote_addr->get_port_number (), - ACE_LOCALHOST); -#endif /*ACE_HAS_IPV6*/ ACE_SOCK_Stream cli_stream; ACE_SOCK_Connector con; @@ -206,7 +202,6 @@ server (void *arg) return 0; } -#if defined (ACE_HAS_IPV6) static void spawn (void) { |