blob: de55d04207905dd65864ada3d8afd4cf67b4a5a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#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 (void);
// = The skeleton methods
virtual void more_data (const Test::Payload &payload,
CORBA::Boolean maybe_lost);
virtual void ping (void);
int count (bool maybe_lost = false) const;
private:
ACE_Atomic_Op<TAO_SYNCH_MUTEX, int> message_count_;
ACE_Atomic_Op<TAO_SYNCH_MUTEX, int> maybe_lost_count_;
};
#include /**/ "ace/post.h"
#endif /* BIG_REQUEST_MUXING_PAYLOAD_RECEIVER_H */
|