2 //=============================================================================
6 * Test for multithreaded client using one global ORB (and Reactor)
8 * @author Michael Kircher
10 //=============================================================================
15 #include "ace/Get_Opt.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "ace/Thread_Manager.h"
24 #include "MT_Client_TestC.h"
29 * @brief A simple client talking to one server
31 * It is connecting to a server which holds the Object_A
32 * or using the "-m" switch to a server holding the MT_Object
37 /// = Constructor and destructor.
41 /// Execute client example code.
44 /// Initialize the client communication endpoint with server.
50 /// reading the IOR of object A in
51 int read_ior (ACE_TCHAR
*filename
);
53 /// Parses the arguments passed on the command line.
56 /// # of arguments on the command line.
59 /// arguments from command line.
65 /// Flag to tell server to shutdown.
69 CORBA::ORB_var orb_var_
;
71 /// pointer to the mt Object
72 MT_Object_var mT_Object_var_
;
74 /// This is used to choose the server...
78 unsigned long iterations_
;
82 * @class MT_Client_Task
84 * @brief Wrapper for the MT_Client to be an extra thread
86 * No big purpose, just wrapping
88 class MT_Client_Task
: public ACE_Task
<ACE_SYNCH
>
91 MT_Client_Task (int argc
, ACE_TCHAR
**argv
, int client_number
);
100 /// To determine if we use the first or the second server.
104 #endif /* MT_CLIENT_H */