diff options
Diffstat (limited to 'TAO/tests/Big_Request_Muxing/Payload_Receiver.cpp')
-rw-r--r-- | TAO/tests/Big_Request_Muxing/Payload_Receiver.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/TAO/tests/Big_Request_Muxing/Payload_Receiver.cpp b/TAO/tests/Big_Request_Muxing/Payload_Receiver.cpp new file mode 100644 index 00000000000..a4179b53960 --- /dev/null +++ b/TAO/tests/Big_Request_Muxing/Payload_Receiver.cpp @@ -0,0 +1,28 @@ +// +// $Id$ +// +#include "Payload_Receiver.h" + +ACE_RCSID(Big_Request_Muxing, Payload_Receiver, "$Id$") + +Payload_Receiver::Payload_Receiver (void) + : message_count_ (0) + , byte_count_ (0) +{ +} + +void +Payload_Receiver::more_data (const Test::Payload &payload, + CORBA::Environment &) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + this->message_count_++; + this->byte_count_ += payload.length (); +} + +CORBA::Long +Payload_Receiver::get_message_count (CORBA::Environment &) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + return this->message_count_; +} |