More tests update
[ACE_TAO.git] / TAO / tests / Oneways_Invoking_Twoways / Sender_i.h
blob658ca9124007478caa8b1c5310f6c922ef864493
1 // This may look like C, but it's really -*- C++ -*-
2 // ===================================================================
3 /**
4 * @file Sender_i.h
6 * @author Balachandran Natarajan <bala@cs.wustl.edu>
7 **/
8 // ===================================================================
10 #ifndef TAO_TESTS_ONEWAYS_INVOKING_TWOWAYS_SENDER_I_H
11 #define TAO_TESTS_ONEWAYS_INVOKING_TWOWAYS_SENDER_I_H
12 #include /**/ "ace/pre.h"
14 #include "TestS.h"
16 /// Implement the Test::Sender interface
17 /**
18 * Implements the oneway call send_ready_message. This in turn calls
19 * the receiver with two way invocations..
22 class Sender_i
23 : public virtual POA_Test::Sender
25 public:
26 /// Constructor
27 Sender_i (CORBA::ORB_ptr orb,
28 CORBA::ULong no);
30 ///Destructor
31 virtual ~Sender_i (void);
33 // = The skeleton methods
34 virtual void active_objects (CORBA::Short ao);
36 virtual void send_ready_message (Test::Receiver_ptr receiver);
38 virtual void ping (void);
40 virtual void shutdown (void);
42 private:
43 /// Our local ORB ptr
44 CORBA::ORB_var orb_;
46 /// Number of invocations to be made on the receiver
47 CORBA::ULong number_;
49 /// Number of active objects who are trying to connect
50 CORBA::Short active_objects_;
53 #include /**/ "ace/post.h"
54 #endif /*TAO_TESTS_ONEWAYS_INVOKING_TWOWAYS_SENDER_I_H*/