summaryrefslogtreecommitdiff
path: root/examples/IOStream/server
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-26 20:37:21 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-26 20:37:21 +0000
commit0725903fd35de34a14bf4fc7eb08fbca79443495 (patch)
tree0db5559c09ddb0ebf5cec31bf897a3804a7f33ef /examples/IOStream/server
parent9fdd114f9305dd042c03e0a340bb54d6897b4751 (diff)
downloadATCD-0725903fd35de34a14bf4fc7eb08fbca79443495.tar.gz
*** empty log message ***
Diffstat (limited to 'examples/IOStream/server')
-rw-r--r--examples/IOStream/server/iostream_server.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/IOStream/server/iostream_server.cpp b/examples/IOStream/server/iostream_server.cpp
index 2fa1f1e8eca..3f6d0200f65 100644
--- a/examples/IOStream/server/iostream_server.cpp
+++ b/examples/IOStream/server/iostream_server.cpp
@@ -113,7 +113,7 @@ main (int argc, char *argv [])
ACE_Service_Config daemon;
// Create an adapter to end the event loop.
- ACE_Sig_Adapter sa ((ACE_Sig_Handler_Ex) ACE_Service_Config::end_reactor_event_loop);
+ ACE_Sig_Adapter sa ((ACE_Sig_Handler_Ex) ACE_Reactor::end_event_loop);
ACE_Sig_Set sig_set;
sig_set.sig_add (SIGINT);
@@ -121,7 +121,7 @@ main (int argc, char *argv [])
// Register ourselves to receive SIGINT and SIGQUIT so we can shut
// down gracefully via signals.
- if (ACE_Service_Config::reactor ()->register_handler (sig_set, &sa) == -1)
+ if (ACE_Reactor::instance()->register_handler (sig_set, &sa) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n"), -1);
Logging_Acceptor peer_acceptor ;
@@ -129,13 +129,13 @@ main (int argc, char *argv [])
if (peer_acceptor.open (ACE_INET_Addr (argc > 1 ? atoi (argv[1]) : ACE_DEFAULT_SERVER_PORT)) == - 1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "open"), - 1);
- else if (ACE_Service_Config::reactor ()->register_handler
+ else if (ACE_Reactor::instance()->register_handler
(&peer_acceptor, ACE_Event_Handler::READ_MASK) == - 1)
ACE_ERROR_RETURN ((LM_ERROR, "registering service with ACE_Reactor\n"), - 1);
ACE_DEBUG ((LM_DEBUG, " (%P|%t) starting up daemon\n"));
- daemon.run_reactor_event_loop ();
+ ACE_Reactor::run_event_loop();
ACE_DEBUG ((LM_DEBUG, " (%P|%t) shutting down server daemon\n"));