#ifndef BIG_REQUEST_MUXING_PAYLOAD_RECEIVER_H #define BIG_REQUEST_MUXING_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: Payload_Receiver (); // = The skeleton methods virtual void more_data (const Test::Payload &payload, CORBA::Boolean maybe_lost); virtual void ping (); int count (bool maybe_lost = false) const; private: ACE_Atomic_Op message_count_; ACE_Atomic_Op maybe_lost_count_; }; #include /**/ "ace/post.h" #endif /* BIG_REQUEST_MUXING_PAYLOAD_RECEIVER_H */