2 #ifndef BIG_REQUEST_MUXING_PAYLOAD_RECEIVER_H
3 #define BIG_REQUEST_MUXING_PAYLOAD_RECEIVER_H
4 #include /**/ "ace/pre.h"
8 /// Implement the Test::Payload_Receiver interface
10 * Simply print count how many bytes were received.
12 class Payload_Receiver
13 : public virtual POA_Test::Payload_Receiver
18 // = The skeleton methods
19 virtual void more_data (const Test::Payload
&payload
,
20 CORBA::Boolean maybe_lost
);
24 int count (bool maybe_lost
= false) const;
27 ACE_Atomic_Op
<TAO_SYNCH_MUTEX
, int> message_count_
;
28 ACE_Atomic_Op
<TAO_SYNCH_MUTEX
, int> maybe_lost_count_
;
31 #include /**/ "ace/post.h"
32 #endif /* BIG_REQUEST_MUXING_PAYLOAD_RECEIVER_H */