Merge pull request #2317 from jwillemsen/jwi-deleteop
[ACE_TAO.git] / ACE / examples / C++NPv2 / Reactor_Logging_Server.cpp
blobf44877cf7a6c6448f4d2db8ab4094e8c936e78df
1 /*
2 ** Copyright 2002 Addison Wesley. All Rights Reserved.
3 */
5 #include "Reactor_Logging_Server_T.h"
6 #include "Logging_Acceptor_Ex.h"
7 #include "ace/Log_Msg.h"
9 typedef Reactor_Logging_Server<Logging_Acceptor_Ex>
10 Server_Logging_Daemon;
12 int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
14 ACE_Reactor reactor;
15 Server_Logging_Daemon *server;
16 // Ignore argv[0]...
17 --argc; ++argv;
18 ACE_NEW_RETURN (server,
19 Server_Logging_Daemon (argc, argv, &reactor),
20 1);
22 if (reactor.run_reactor_event_loop () == -1)
23 ACE_ERROR_RETURN ((LM_ERROR, "%p\n",
24 "run_reactor_event_loop()"), 1);
25 return 0;