ACE+TAO-6_5_17
[ACE_TAO.git] / TAO / tests / Oneway_Send_Timeouts / Server.h
blob09d98a408d792a0831290bae93dec86951785a60
1 #ifndef _SERVER_
2 #define _SERVER_
4 #include "Test_i.h"
6 #include "ORB_Task.h"
8 #include "tao/IORTable/IORTable.h"
9 #include "tao/PortableServer/POAC.h"
10 #include "tao/PortableServer/POAManagerC.h"
12 #include <string>
14 class Server
16 public:
17 Server (int argc, ACE_TCHAR* argv[]);
18 ~Server ();
20 bool run (bool management);
21 void shutdown ();
23 bool init_;
25 private:
26 bool parse_args (int argc, ACE_TCHAR* argv[]);
28 CORBA::ORB_var orb_;
29 CORBA::ORB_var management_orb_;
30 bool shutdown_;
31 TAO_SYNCH_MUTEX mutex_;
32 std::auto_ptr<Test_i> test_i_;
35 #endif //_SERVER_