summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/MT_BiDir/Receiver_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tests/MT_BiDir/Receiver_i.h')
-rw-r--r--trunk/TAO/tests/MT_BiDir/Receiver_i.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/trunk/TAO/tests/MT_BiDir/Receiver_i.h b/trunk/TAO/tests/MT_BiDir/Receiver_i.h
new file mode 100644
index 00000000000..189191d7861
--- /dev/null
+++ b/trunk/TAO/tests/MT_BiDir/Receiver_i.h
@@ -0,0 +1,37 @@
+//
+// $Id$
+//
+
+#ifndef MT_BIDIR_RECEIVER_I_H
+#define MT_BIDIR_RECEIVER_I_H
+#include /**/ "ace/pre.h"
+
+#include "ReceiverS.h"
+
+/**
+ * Simply print count how many bytes were received.
+ */
+class Receiver_i
+ : public virtual POA_Receiver
+{
+public:
+ /// Constructor
+ Receiver_i (void);
+
+
+ /// Get the number of events that have been received, local method
+ CORBA::Long get_event_count (void);
+
+ // = The skeleton methods
+ virtual void receive_payload (const Receiver::Payload &payload
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+private:
+ TAO_SYNCH_MUTEX mutex_;
+ CORBA::ULong message_count_;
+ CORBA::ULong byte_count_;
+};
+
+#include /**/ "ace/post.h"
+#endif /* MUXING_RECEIVER_H */