blob: 22692181cab2812233c67f0516368bfbbdabb593 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
// -*- C++ -*-
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/examples/PluggableUDP/tests/Performance
//
// = FILENAME
// UDP_PerformanceClient.h
//
// = DESCRIPTION
// This class implements the client functionality of the UDP test.
//
// = AUTHOR
// Michael Kircher <Michael.Kircher@mchp.siemens.de>
//
// ============================================================================
#ifndef UDP_PERFORMANCECLIENT_H
#define UDP_PERFORMANCECLIENT_H
#include "ace/Task.h"
#include "tao/ORB.h"
#include "UDP_i.h"
#include "UDPC.h"
class UDP_PerformanceClient
: public ACE_Task_Base
{
// = TITLE
// UDP Client interface subclass.
//
// = DESCRIPTION
// This class wrapps the client functionality into one class
//
public:
// = Initialization and termination methods.
UDP_PerformanceClient (CORBA::ORB_ptr orb,
UDP_ptr udp,
UDP_i *udpHandler,
ACE_UINT32 burst_messages,
ACE_UINT32 final_delta_micro_seconds);
// Constructor
virtual ~UDP_PerformanceClient (void);
// Destructor
private:
// Runs in a separate thread.
virtual int svc (void );
private:
CORBA::ORB_var orb_;
UDP_var udp_;
UDP_i *udpHandler_;
ACE_UINT32 last_wrong_messages_;
ACE_UINT32 burst_messages_;
ACE_UINT32 final_delta_micro_seconds_;
};
#endif /* UDP_PERFORMANCECLIENT_H */
|