Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / DIOP / UDP_Client_i.h
blob80b8800577b858d2af7208388947438677ba75b6
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file UDP_Client_i.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_CLIENT_I_H
15 #define UDP_CLIENT_I_H
17 #include "ace/Task.h"
18 #include "tao/ORB.h"
20 #include "UDPC.h"
22 class UDP_Client_i
23 : public ACE_Task_Base
25 // = TITLE
26 // UDP Client interface subclass.
28 // = DESCRIPTION
29 // This class wrapps the client functionality into one class
31 public:
32 /// Constructor
33 UDP_Client_i (CORBA::ORB_ptr orb,
34 UDP_ptr udp,
35 UDP_ptr udpHandler,
36 ACE_UINT32 msec,
37 ACE_UINT32 iterations);
39 /// Destructor
40 virtual ~UDP_Client_i ();
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_var udpHandler_;
53 ACE_UINT32 delay_;
55 ACE_UINT32 iterations_;
59 #endif /* UDP_CLIENT_I_H */