Merge pull request #1710 from likema/cfg-assign-not-null-str
[ACE_TAO.git] / TAO / examples / PluggableUDP / tests / Performance / UDP_PerformanceClient.h
blobea87bd4f6d0f35bc20e5a11084b03ada0ae2050e
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file UDP_PerformanceClient.h
7 * This class implements the client functionality of the UDP test.
9 * @author Michael Kircher <Michael.Kircher@mchp.siemens.de>
11 //=============================================================================
14 #ifndef UDP_PERFORMANCECLIENT_H
15 #define UDP_PERFORMANCECLIENT_H
17 #include "ace/Task.h"
18 #include "tao/ORB.h"
20 #include "UDP_i.h"
21 #include "UDPC.h"
23 class UDP_PerformanceClient
24 : public ACE_Task_Base
26 // = TITLE
27 // UDP Client interface subclass.
29 // = DESCRIPTION
30 // This class wrapps the client functionality into one class
32 public:
33 /// Constructor
34 UDP_PerformanceClient (CORBA::ORB_ptr orb,
35 UDP_ptr udp,
36 UDP_i *udpHandler,
37 ACE_UINT32 burst_messages);
39 /// Destructor
40 virtual ~UDP_PerformanceClient ();
42 private:
43 // Runs in a separate thread.
44 virtual int svc ();
46 private:
47 CORBA::ORB_var orb_;
49 UDP_var udp_;
51 UDP_i *udpHandler_;
53 ACE_UINT32 last_wrong_messages_;
55 ACE_UINT32 burst_messages_;
58 #endif /* UDP_PERFORMANCECLIENT_H */