2 ** Copyright 2002 Addison Wesley. All Rights Reserved.
5 #ifndef _SERVICE_REPORTER_H
6 #define _SERVICE_REPORTER_H
8 #include "ace/Reactor.h"
9 #include "ace/Service_Object.h"
10 #include "ace/SOCK_Acceptor.h"
13 class Service_Reporter
: public ACE_Service_Object
{
15 Service_Reporter (ACE_Reactor
*r
= ACE_Reactor::instance ())
16 : ACE_Service_Object (r
) {}
19 // Hook methods inherited from <ACE_Service_Object>.
20 virtual int init (int argc
, ACE_TCHAR
*argv
[]);
22 virtual int info (ACE_TCHAR
**, size_t) const;
23 virtual int suspend ();
24 virtual int resume ();
26 // Reactor hook methods.
27 virtual int handle_input (ACE_HANDLE
);
28 virtual ACE_HANDLE
get_handle () const
29 { return acceptor_
.get_handle (); }
32 ACE_SOCK_Acceptor acceptor_
; // Acceptor instance.
33 enum { DEFAULT_PORT
= 9411 };
36 #endif /* _SERVICE_REPORTER_H */