2 ** Copyright 2002 Addison Wesley. All Rights Reserved.
5 // Implementations for Reactor_Logging_Server<>
7 template <class ACCEPTOR
>
8 Reactor_Logging_Server
<ACCEPTOR
>::Reactor_Logging_Server
9 (int argc
, char *argv
[], ACE_Reactor
*reactor
)
10 : ACCEPTOR (reactor
) {
11 u_short logger_port
= argc
> 0 ? ACE_OS::atoi (argv
[0]) : 0;
12 typename
ACCEPTOR::PEER_ADDR server_addr
;
16 result
= server_addr
.set (logger_port
,
17 (ACE_UINT32
) INADDR_ANY
);
19 result
= server_addr
.set ("ace_logger",
20 (ACE_UINT32
) INADDR_ANY
);
22 result
= ACCEPTOR::open (server_addr
);
23 if (result
== -1) reactor
->end_reactor_event_loop ();