Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / Stack_Recursion / Sender.h
blob3cbadc6ec6396914196f79d04f759d50c380b859
2 #ifndef STACK_RECURSION_SENDER_H
3 #define STACK_RECURSION_SENDER_H
4 #include /**/ "ace/pre.h"
6 #include "TestS.h"
8 /// Implement the Test::Receiver interface
9 /**
10 * Simply print count how many bytes were received.
12 class Sender
13 : public virtual POA_Test::Sender
15 public:
16 /// Constructor
17 Sender (CORBA::ORB_ptr orb);
19 /// Print out the results
20 void dump_results ();
22 /// Get the status of the flag..
23 bool is_done () const;
25 // = The skeleton methods
26 virtual CORBA::Boolean get_data (CORBA::ULong size,
27 Test::Payload_out payload);
29 virtual CORBA::Long get_event_count ();
31 virtual void ping ();
33 virtual void shutdown ();
35 private:
36 TAO_SYNCH_MUTEX mutex_;
37 CORBA::ULong message_count_;
38 CORBA::ULong byte_count_;
39 CORBA::ORB_var orb_;
41 bool is_done_;
44 #include /**/ "ace/post.h"
45 #endif /* MUXING_RECEIVER_H */