2 * Home Automation Status server. Sample code from The ACE Programmer's Guide,
3 * copyright 2003 Addison-Wesley. All Rights Reserved.
10 #include "ace/Acceptor.h"
11 #include "ace/INET_Addr.h"
12 #include "ace/SOCK_Stream.h"
13 #include "ace/SOCK_Acceptor.h"
14 #include "ace/Service_Object.h"
15 #include "ace/Svc_Handler.h"
17 #include "HASTATUS_export.h"
20 public ACE_Svc_Handler
<ACE_SOCK_STREAM
, ACE_NULL_SYNCH
>
22 // ... Same as previous examples.
25 class HASTATUS_Export HA_Status
: public ACE_Service_Object
28 virtual int init (int argc
, ACE_TCHAR
*argv
[]);
32 virtual int info (ACE_TCHAR
**str
, size_t len
) const;
35 ACE_Acceptor
<ClientHandler
, ACE_SOCK_ACCEPTOR
> acceptor_
;
36 ACE_INET_Addr listen_addr_
;
40 #endif /* __HASTATUS_H_ */