//
// Payload_Receiver.cpp,v 1.4 2002/01/29 20:21:07 okellogg Exp
//
#include "Payload_Receiver.h"

ACE_RCSID(Big_Request_Muxing, Payload_Receiver, "Payload_Receiver.cpp,v 1.4 2002/01/29 20:21:07 okellogg Exp")

Payload_Receiver::Payload_Receiver (void)
  :  message_count_ (0)
  ,  byte_count_ (0)
{
}

void
Payload_Receiver::more_data (const Test::Payload &payload
                             ACE_ENV_ARG_DECL_NOT_USED)
  ACE_THROW_SPEC ((CORBA::SystemException))
{
  this->message_count_++;
  this->byte_count_ += payload.length ();
}

CORBA::Long
Payload_Receiver::get_message_count (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
  ACE_THROW_SPEC ((CORBA::SystemException))
{
  return this->message_count_;
}
