1 // Define classes used with templates in server_loggerd.h.
3 #ifndef __SERVER_LOGGERD_H
4 #define __SERVER_LOGGERD_H
6 #include "ace/SOCK_Stream.h"
7 #include "ace/Svc_Handler.h"
8 #include "ace/os_include/os_netdb.h"
13 // Keeps track of the options.
15 void parse_args (int argc
, ACE_TCHAR
*argv
[]);
24 class Logging_Handler
: public ACE_Svc_Handler
<ACE_SOCK_STREAM
, ACE_NULL_SYNCH
>
26 // Receive client message from the remote clients.
29 // This class demonstrates how to receive messages from remote
30 // clients using the notification mechanisms in the
31 // <ACE_Reactor>. In addition, it also illustrates how to
32 // utilize the <ACE_Reactor> timer mechanisms, as well.
37 // = Hooks for opening and closing handlers.
38 virtual int open (void *);
41 // = Demultiplexing hooks.
42 virtual int handle_input (ACE_HANDLE
);
43 virtual int handle_timeout (const ACE_Time_Value
&tv
,
47 char peer_name_
[MAXHOSTNAMELEN
+ 1];
48 // Host we are connected to.
51 #endif /* __SERVER_LOGGERD_H */