3 #ifndef ACE_CONNECTION_HANDLER_H
4 #define ACE_CONNECTION_HANDLER_H
6 #include "ace/SOCK_Stream.h"
7 #include "ace/Svc_Handler.h"
9 class Connection_Handler
: public ACE_Svc_Handler
<ACE_SOCK_STREAM
, ACE_NULL_SYNCH
>
12 // Initialize the <Connection_Handler> and make it an Active Object.
13 virtual int open (void *);
15 // Terminate the <Connection_Handler>.
16 virtual int close (u_long
);
18 // Run the <Connection_Handler>'s main event loop.
22 // Signal the Active Object to stop when called.
23 virtual int handle_close (ACE_HANDLE
,
26 // Handle input from the client.
27 virtual int handle_input (ACE_HANDLE
);
30 virtual int handle_timeout (const ACE_Time_Value
&tv
,
34 virtual int handle_signal (int signum
, siginfo_t
*, ucontext_t
*);
36 // Keeps track of whether we're done.
37 sig_atomic_t finished_
;
40 #endif /* ACE_CONNECTION_HANDLER_H */