3 // The types defined in ACE_CDR are more complete that those in Basic_Types.h
6 #ifndef OPTIONS_MANAGER_H
7 #define OPTIONS_MANAGER_H
10 #include "ace/CDR_Base.h"
13 #include "ace/streams.h"
14 #include "ace/OS_NS_stdio.h"
19 Options_Manager(int argc
, ACE_TCHAR
**argv
, ACE_TCHAR
const * const opts_set
);
21 // constant string size
22 enum { string_len
= 100 };
24 static ACE_CDR::ULong test_iterations
;
25 static ACE_CDR::Boolean test_enable_nagle
;
26 static ACE_CDR::Long test_transport_protocol
;
28 static ACE_CDR::Double histogram_min_bin
;
29 static ACE_CDR::Double histogram_max_bin
;
30 static ACE_CDR::ULong histogram_bin_count
;
31 static ACE_CDR::ULong histogram_num_outliers
;
33 static ACE_CDR::UShort client_port
;
34 static ACE_CDR::ULong client_connect_addr
;
36 static ACE_CDR::UShort server_port
;
37 static ACE_TCHAR server_host
[string_len
];
38 static ACE_CDR::ULong server_accept_addr
;
40 static ACE_CDR::UShort payload_size_power_of_2
;
42 // Secondary client_connect_addrs for SCTP SOCK_SEQPACK test
43 enum { max_num_secondary_connect_addrs
= 100 };
44 static ACE_CDR::ULong secondary_connect_addrs
[max_num_secondary_connect_addrs
];
45 static ACE_CDR::UShort num_secondary_connect_addrs
;
47 // Secondary server_accept_addrs for SCTP SOCK_SEQPACK test
48 enum { max_num_secondary_accept_addrs
= 100 };
49 static ACE_CDR::ULong secondary_accept_addrs
[max_num_secondary_accept_addrs
];
50 static ACE_CDR::UShort num_secondary_accept_addrs
;
52 static ACE_CDR::UShort _error
;
53 static const ACE_TCHAR
* _error_message
;
55 static ACE_CDR::UShort _usage
;
56 void _show_usage(FILE* out
, ACE_TCHAR
const * const opts_set
);
59 static ACE_CDR::Boolean __initialized
;
60 static ACE_TCHAR __program_name
[string_len
];
63 #endif /* OPTIONS_MANAGER_H */