Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Stack_Recursion / Sender.h
blobd0b38efbcfad2b28b9d168ee55726f1249ef5008
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 (void);
22 /// Get the status of the flag..
23 bool is_done (void) 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 (void);
31 virtual void ping (void);
33 virtual void shutdown (void);
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 */