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
38 /// = Constructor and destructor.
42 /// Execute client example code.
45 /// Initialize the client communication endpoint with server.
51 /// reading the IOR of object A in
52 int read_ior (ACE_TCHAR
*filename
);
54 /// Parses the arguments passed on the command line.
55 int parse_args (void);
57 /// # of arguments on the command line.
60 /// arguments from command line.
66 /// Flag to tell server to shutdown.
70 CORBA::ORB_var orb_var_
;
72 /// pointer to the mt Object
73 MT_Object_var mT_Object_var_
;
75 /// This is used to choose the server...
79 unsigned long iterations_
;
84 * @class MT_Client_Task
86 * @brief Wrapper for the MT_Client to be an extra thread
88 * No big purpose, just wrapping
90 class MT_Client_Task
: public ACE_Task
<ACE_SYNCH
>
93 MT_Client_Task (int argc
, ACE_TCHAR
**argv
, int client_number
);
95 virtual int svc (void);
102 /// To determine if we use the first or the second server.
106 #endif /* MT_CLIENT_H */