summaryrefslogtreecommitdiff
path: root/TAO/tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h')
-rw-r--r--TAO/tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/TAO/tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h b/TAO/tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h
new file mode 100644
index 00000000000..24717072a73
--- /dev/null
+++ b/TAO/tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h
@@ -0,0 +1,35 @@
+//
+// $Id$
+//
+
+#ifndef PMB_WITH_FRAGMENTS_PAYLOAD_RECEIVER_H
+#define PMB_WITH_FRAGMENTS_PAYLOAD_RECEIVER_H
+#include /**/ "ace/pre.h"
+
+#include "TestS.h"
+
+/// Implement the Test::Payload_Receiver interface
+/**
+ * Simply print count how many bytes were received.
+ */
+class Payload_Receiver
+ : public virtual POA_Test::Payload_Receiver
+{
+public:
+ /// Constructor
+ Payload_Receiver (CORBA::ORB_ptr orb);
+
+ // = The skeleton methods
+ virtual void more_data (const Test::Payload &payload);
+
+ virtual void shutdown (void);
+
+ int get_count (void) const;
+
+public:
+ int count_;
+ CORBA::ORB_var orb_;
+};
+
+#include /**/ "ace/post.h"
+#endif /* PMB_WITH_FRAGMENTS_PAYLOAD_RECEIVER_H */