Use =default for skeleton copy constructor
[ACE_TAO.git] / ACE / examples / C++NPv2 / Service_Reporter.h
blob5ed49d74946d511fd94907f79296370f247428f6
1 /*
2 ** Copyright 2002 Addison Wesley. All Rights Reserved.
3 */
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 {
14 public:
15 Service_Reporter (ACE_Reactor *r = ACE_Reactor::instance ())
16 : ACE_Service_Object (r) {}
18 protected:
19 // Hook methods inherited from <ACE_Service_Object>.
20 virtual int init (int argc, ACE_TCHAR *argv[]);
21 virtual int fini ();
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 (); }
31 private:
32 ACE_SOCK_Acceptor acceptor_; // Acceptor instance.
33 enum { DEFAULT_PORT = 9411 };
36 #endif /* _SERVICE_REPORTER_H */