Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / AMH / Sink_Server / AMH_Servant.h
blob5ccffa8d0fbc62e5153949c68ca270d531589a94
1 // -*- C++ -*-
3 // =========================================================================
4 /**
5 * @file AMH_Servant.h
7 * @author Mayur Deshpande <mayur@ics.uci.edu>
8 */
9 // =========================================================================
12 #ifndef AMH_SERVANT_H
13 #define AMH_SERVANT_H
15 #include /**/ "ace/pre.h"
16 #include "tao/ORB_Core.h"
18 #include "TestS.h"
20 /// Implement the Rountrip interface
21 class AMH_Servant
22 : public virtual POA_Test::AMH_Roundtrip
24 public:
25 AMH_Servant (CORBA::ORB_ptr orb);
27 virtual ~AMH_Servant (void);
29 /// parse arguments from command line for sleep time
30 virtual int parse_args (int &argc, ACE_TCHAR **argv);
32 // = The skeleton methods
33 virtual void start_test (Test::AMH_RoundtripResponseHandler_ptr _tao_rh);
35 virtual void end_test (Test::AMH_RoundtripResponseHandler_ptr _tao_rh);
37 virtual void test_method (Test::AMH_RoundtripResponseHandler_ptr _tao_rh,
38 Test::Timestamp send_time);
40 protected:
41 ACE_Reactor *reactor_;
42 int sleep_time_;
45 #include /**/ "ace/post.h"
47 #endif /* AMH_SERVANT_H */