Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Oneway_Send_Timeouts / Client.h
blob4413cacdbfb9562f50d4b83b27298debf029eb19
1 #ifndef _CLIENT_
2 #define _CLIENT_
4 #include "TestC.h"
6 #include "ace/Time_Value.h"
8 #include <string>
10 class Client
12 public:
13 Client (int argc, ACE_TCHAR* argv[]);
14 ~Client ();
16 bool run ();
18 private:
19 bool init (int argc, ACE_TCHAR* argv[]);
20 bool parse_args (int argc, ACE_TCHAR* argv[]);
22 enum Flushing_Strategy
24 LF,
25 BLOCKING,
26 REACTIVE
29 bool init_;
30 bool one_way_test_;
31 CORBA::ORB_var orb_;
32 Test_var test_obj_;
33 Test_var management_;
34 Flushing_Strategy flush_strategy_;
36 Test_var test_obj_none_timeout_;
37 Test_var test_obj_eager_timeout_;
38 Test_var test_obj_delayed_timeout_;
39 Test_var test_obj_transport_timeout_;
40 Test_var test_obj_server_timeout_;
41 Test_var test_obj_target_timeout_;
43 // flood up connection for 'tv' time.
44 // if tv is 0, remember to unsleep server.
45 bool flood_connection (ACE_Time_Value& tv);
46 bool unplug_transport ();
47 bool test_oneway_timeout (bool flood);
50 #endif //_CLIENT_