From 55147c5ba6dc403aaf7428fb7720175d3161d80b Mon Sep 17 00:00:00 2001 From: schmidt Date: Sun, 3 Jan 1999 21:08:23 +0000 Subject: . --- tests/Process_Strategy_Test.cpp | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'tests/Process_Strategy_Test.cpp') diff --git a/tests/Process_Strategy_Test.cpp b/tests/Process_Strategy_Test.cpp index 77d82b8a8bc..37779c86125 100644 --- a/tests/Process_Strategy_Test.cpp +++ b/tests/Process_Strategy_Test.cpp @@ -528,16 +528,20 @@ main (int argc, char *argv[]) // Bind acceptor to any port and then find out what the port was. // Note that this implicitly creates the Reactor singleton. - if (acceptor.open ((const ACE_INET_Addr &) ACE_Addr::sap_any, + if (acceptor.open (ACE_sap_any_cast (const ACE_INET_Addr &), ACE_Reactor::instance(), 0, 0, OPTIONS::instance ()->concurrency_strategy ()) == -1 || acceptor.acceptor ().get_local_addr (server_addr) == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "open"), -1); + ACE_ERROR_RETURN ((LM_ERROR, + "%p\n", + "open"), + -1); else { - ACE_DEBUG ((LM_DEBUG, "(%P|%t) starting server at port %d\n", + ACE_DEBUG ((LM_DEBUG, + "(%P|%t) starting server at port %d\n", server_addr.get_port_number ())); #if !defined (ACE_LACKS_FORK) @@ -547,7 +551,9 @@ main (int argc, char *argv[]) switch (pid) { case -1: - ACE_ERROR ((LM_ERROR, "(%P|%t) %p\n%a", "fork failed")); + ACE_ERROR ((LM_ERROR, + "(%P|%t) %p\n%a", + "fork failed")); exit (-1); /* NOTREACHED */ case 0: @@ -565,13 +571,17 @@ main (int argc, char *argv[]) (ACE_THR_FUNC (server), (void *) 0, THR_NEW_LWP | THR_DETACHED) == -1) - ACE_ERROR ((LM_ERROR, "(%P|%t) %p\n%a", "thread create failed")); + ACE_ERROR ((LM_ERROR, + "(%P|%t) %p\n%a", + "thread create failed")); if (ACE_Thread_Manager::instance ()->spawn (ACE_THR_FUNC (client), (void *) &server_addr, THR_NEW_LWP | THR_DETACHED) == -1) - ACE_ERROR ((LM_ERROR, "(%P|%t) %p\n%a", "thread create failed")); + ACE_ERROR ((LM_ERROR, + "(%P|%t) %p\n%a", + "thread create failed")); // Wait for the threads to exit. ACE_Thread_Manager::instance ()->wait (); -- cgit v1.2.1