summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-01-18 15:40:48 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-01-18 15:40:48 +0000
commit3e690e2ec5858f4e71814d214ab447578e03a9b8 (patch)
tree67e4e8b8ed446e45446629212e6c20c6310831f0 /tests
parentc9e960efc0e7677408df14cbb0e3e2c26e9f8697 (diff)
downloadATCD-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.cpp11
-rw-r--r--tests/SOCK_Test_IPv6.cpp7
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)
{