summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2004-01-17 06:58:24 +0000
committerbala <balanatarajan@users.noreply.github.com>2004-01-17 06:58:24 +0000
commit18852537eb68b29cfa68bbd2f2501a1b4a928773 (patch)
tree67b159f3f8f13090161a75108513575a5c8ddeeb /tests
parentaf25ab327754cc1849bcdf4ac60cf49665123863 (diff)
downloadATCD-18852537eb68b29cfa68bbd2f2501a1b4a928773.tar.gz
ChangeLogTag:Sat Jan 17 00:56:54 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'tests')
-rw-r--r--tests/Proactor_Test_IPV6.cpp4
-rw-r--r--tests/SOCK_Send_Recv_Test_IPV6.cpp7
-rw-r--r--tests/SOCK_Test_IPv6.cpp6
3 files changed, 17 insertions, 0 deletions
diff --git a/tests/Proactor_Test_IPV6.cpp b/tests/Proactor_Test_IPV6.cpp
index ea2582154c2..ec6af5c3ec1 100644
--- a/tests/Proactor_Test_IPV6.cpp
+++ b/tests/Proactor_Test_IPV6.cpp
@@ -1875,7 +1875,11 @@ parse_args (int argc, ACE_TCHAR *argv[])
// First, set up all the defaults then let any args change them.
both = 1; // client and server simultaneosly
duplex = 1; // full duplex is on
+#if defined (ACE_HAS_IPV6)
host = ACE_IPV6_LOCALHOST; // server to connect (IPv6 localhost)
+#else
+ host = ACE_LOCALHOST;
+#endif /*ACE_HAS_IPV6*/
port = ACE_DEFAULT_SERVER_PORT; // port to connect/listen
max_aio_operations = 512; // POSIX Proactor params
proactor_type = DEFAULT; // Proactor type = default
diff --git a/tests/SOCK_Send_Recv_Test_IPV6.cpp b/tests/SOCK_Send_Recv_Test_IPV6.cpp
index 173f089503e..7c776da6a21 100644
--- a/tests/SOCK_Send_Recv_Test_IPV6.cpp
+++ b/tests/SOCK_Send_Recv_Test_IPV6.cpp
@@ -48,8 +48,15 @@ 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;
diff --git a/tests/SOCK_Test_IPv6.cpp b/tests/SOCK_Test_IPv6.cpp
index 1ebd30f8721..90bdd2f9682 100644
--- a/tests/SOCK_Test_IPv6.cpp
+++ b/tests/SOCK_Test_IPv6.cpp
@@ -31,8 +31,14 @@ 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;