Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / examples / Connection / misc / Connection_Handler.h
blobf743fcdb339e3d0b64012446b4e28ce23ac1e36d
1 /* -*- C++ -*- */
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>
11 public:
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.
19 virtual int svc ();
21 protected:
22 // Signal the Active Object to stop when called.
23 virtual int handle_close (ACE_HANDLE,
24 ACE_Reactor_Mask);
26 // Handle input from the client.
27 virtual int handle_input (ACE_HANDLE);
29 // Handle timeouts.
30 virtual int handle_timeout (const ACE_Time_Value &tv,
31 const void *arg);
33 // Handle signal.
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 */