#include <params.h>
Collaboration diagram for TAO_ORB_Parameters:
Public Types | |
typedef ACE_Array_Map< ACE_CString, ACE_CString > | endpoints_map_type |
Public Member Functions | |
TAO_ORB_Parameters (void) | |
Constructor. | |
int | add_endpoints (const ACE_CString &lane, const ACE_CString &endpoints) |
void | get_endpoint_set (const ACE_CString &lane, TAO_EndpointSet &endpoint_set) |
CORBA::UShort | service_port (TAO::MCAST_SERVICEID service_id) const |
Set/Get the port of services locatable through multicast. | |
void | service_port (TAO::MCAST_SERVICEID service_id, CORBA::UShort port) |
const char * | mcast_discovery_endpoint (void) const |
void | mcast_discovery_endpoint (const char *mde) |
int | sock_rcvbuf_size (void) const |
Set/Get the size to be used for a socket's receive buffer. | |
void | sock_rcvbuf_size (int) |
int | sock_sndbuf_size (void) const |
Set/Get the size to be used for a socket's send buffer. | |
void | sock_sndbuf_size (int) |
int | nodelay (void) const |
Set/Get the status of whether to use TCP_NODELAY or not. | |
void | nodelay (int) |
int | sock_keepalive (void) |
Set/Get whether we should set SO_KEEPALIVE on the socket or not. | |
void | sock_keepalive (int) |
int | sock_dontroute (void) |
Set/Get whether we should set SO_DONTROUTE on the socket or not. | |
void | sock_dontroute (int) |
int | cdr_memcpy_tradeoff (void) const |
void | cdr_memcpy_tradeoff (int) |
int | use_dotted_decimal_addresses (void) const |
void | use_dotted_decimal_addresses (int) |
int | cache_incoming_by_dotted_decimal_address (void) const |
void | cache_incoming_by_dotted_decimal_address (int) |
int | linger (void) const |
The ORB will turn off SO_LINGER if this is zero. | |
void | linger (int) |
char * | default_init_ref (void) const |
Set/Get the Init Reference of an arbitrary ObjectID. | |
void | default_init_ref (const char *default_init_ref) |
int | std_profile_components (void) const |
void | std_profile_components (int x) |
int | ace_sched_policy (void) const |
Scheduling policy. | |
void | ace_sched_policy (int x) |
long | sched_policy (void) const |
Scheduling policy flag. | |
void | sched_policy (long x) |
long | scope_policy (void) const |
Scheduling scope flag. | |
void | scope_policy (long x) |
long | thread_creation_flags (void) const |
Thread creation flags. | |
int | single_read_optimization (void) const |
Single read optimization. | |
void | single_read_optimization (int x) |
int | shared_profile (void) const |
Create shared profiles without priority. | |
void | shared_profile (int x) |
bool | use_parallel_connects (void) const |
void | use_parallel_connects (bool x) |
unsigned long | parallel_connect_delay (void) const |
void | parallel_connect_delay (unsigned long x) |
bool | disable_rt_collocation_resolver (void) const |
Mutators and accessors for rt_collocation_resolver. | |
void | disable_rt_collocation_resolver (bool) |
bool | preferred_interfaces (const char *s) |
const char * | preferred_interfaces (void) const |
void | enforce_pref_interfaces (bool p) |
bool | enforce_pref_interfaces (void) const |
void | prefer_ipv6_interfaces (bool p) |
bool | prefer_ipv6_interfaces (void) const |
void | connect_ipv6_only (bool p) |
bool | connect_ipv6_only (void) const |
void | use_ipv6_link_local (bool p) |
bool | use_ipv6_link_local (void) const |
void | negotiate_codesets (bool c) |
bool | negotiate_codesets (void) const |
void | ami_collication (bool opt) |
bool | ami_collication (void) const |
void | protocols_hooks_name (const char *s) |
const char * | protocols_hooks_name (void) const |
void | thread_lane_resources_manager_factory_name (const char *s) |
const char * | thread_lane_resources_manager_factory_name (void) const |
void | stub_factory_name (const char *s) |
const char * | stub_factory_name (void) const |
void | poa_factory_name (const char *s) |
const char * | poa_factory_name (void) const |
void | poa_factory_directive (const char *s) |
const char * | poa_factory_directive (void) const |
void | endpoint_selector_factory_name (const char *s) |
const char * | endpoint_selector_factory_name (void) const |
void | collocation_resolver_name (const char *s) |
const char * | collocation_resolver_name (void) const |
ACE_CDR::ULong | max_message_size (void) const |
void | max_message_size (ACE_CDR::ULong size) |
Private Member Functions | |
int | parse_and_add_endpoints (const ACE_CString &endpoints, TAO_EndpointSet &endpoint_set) |
Private Attributes | |
endpoints_map_type | endpoints_map_ |
Map of endpoints this server is willing to accept requests on. | |
CORBA::UShort | service_port_ [TAO_NO_OF_MCAST_SERVICES] |
Port numbers of the configured services. | |
CORBA::String_var | mcast_discovery_endpoint_ |
ACE_CString | default_init_ref_ |
List of comma separated prefixes from ORBDefaultInitRef. | |
int | sock_rcvbuf_size_ |
Size to be used for a socket's receive buffer. | |
int | sock_sndbuf_size_ |
Size to be used for a socket's send buffer. | |
int | nodelay_ |
1 if we're using TCP_NODELAY and 0 otherwise. | |
int | sock_keepalive_ |
1 if we're using SO_KEEPALIVE and 0 otherwise (default 0). | |
int | sock_dontroute_ |
1 if we're using SO_DONTROUTE and 0 otherwise (default 0). | |
int | cdr_memcpy_tradeoff_ |
ACE_CDR::ULong | max_message_size_ |
Maximum GIOP message size to be sent over a given transport. | |
int | use_dotted_decimal_addresses_ |
For selecting a address notation. | |
int | cache_incoming_by_dotted_decimal_address_ |
int | linger_ |
For setting the SO_LINGER option. | |
int | std_profile_components_ |
If true then the standard OMG components are not generated. | |
int | ace_sched_policy_ |
Scheduling policy. | |
long | sched_policy_ |
Scheduling policy flag. | |
long | scope_policy_ |
Scheduling scope flag. | |
int | single_read_optimization_ |
Single read optimization. | |
int | shared_profile_ |
Shared Profile - Use the same profile for multiple endpoints. | |
int | use_parallel_connects_ |
unsigned long | parallel_connect_delay_ |
ACE_CString | pref_network_ |
Preferred network interfaces as a string. | |
bool | disable_rt_collocation_resolver_ |
Default collocation resolver. | |
bool | enforce_preferred_interfaces_ |
bool | prefer_ipv6_interfaces_ |
Prefer to connect IPv6 over IPv4 Yes or No. | |
bool | connect_ipv6_only_ |
bool | use_ipv6_link_local_ |
Include Link Local IPv6 profiles to IOR Yes or No. | |
bool | negotiate_codesets_ |
Enable the use of codeset negotiation. | |
bool | ami_collication_ |
Do we make collocated ami calls. | |
ACE_CString | protocols_hooks_name_ |
ACE_CString | stub_factory_name_ |
ACE_CString | endpoint_selector_factory_name_ |
ACE_CString | thread_lane_resources_manager_factory_name_ |
ACE_CString | poa_factory_name_ |
ACE_CString | poa_factory_directive_ |
ACE_CString | collocation_resolver_name_ |
Definition at line 51 of file params.h.
|
|
|
Constructor.
Definition at line 19 of file params.cpp. References ACE_DEFAULT_CDR_MEMCPY_TRADEOFF, ACE_DEFAULT_MAX_SOCKET_BUFSIZ, ACE_DYNAMIC_SERVICE_DIRECTIVE, ACE_SCHED_OTHER, ACE_TEXT_ALWAYS_CHAR, service_port_, TAO_DEFAULT_INIT_REFERENCE_INITIALIZER, and TAO_NO_OF_MCAST_SERVICES.
00020 : endpoints_map_ (10) 00021 , mcast_discovery_endpoint_ () 00022 , default_init_ref_ (TAO_DEFAULT_INIT_REFERENCE_INITIALIZER) 00023 , sock_rcvbuf_size_ (ACE_DEFAULT_MAX_SOCKET_BUFSIZ) 00024 , sock_sndbuf_size_ (ACE_DEFAULT_MAX_SOCKET_BUFSIZ) 00025 , nodelay_ (1) 00026 , sock_keepalive_ (0) 00027 , sock_dontroute_ (0) 00028 , cdr_memcpy_tradeoff_ (ACE_DEFAULT_CDR_MEMCPY_TRADEOFF) 00029 , max_message_size_ (0) // Disable outgoing GIOP fragments by default 00030 , use_dotted_decimal_addresses_ (0) 00031 , cache_incoming_by_dotted_decimal_address_ (0) 00032 , linger_ (-1) 00033 , std_profile_components_ (1) 00034 , ace_sched_policy_ (ACE_SCHED_OTHER) 00035 , sched_policy_ (THR_SCHED_DEFAULT) 00036 , scope_policy_ (THR_SCOPE_PROCESS) 00037 , single_read_optimization_ (1) 00038 , shared_profile_ (0) 00039 , use_parallel_connects_ (false) 00040 , parallel_connect_delay_ (0) 00041 , pref_network_ () 00042 , disable_rt_collocation_resolver_ (false) 00043 , enforce_preferred_interfaces_ (false) 00044 #if defined (ACE_HAS_IPV6) 00045 , prefer_ipv6_interfaces_ (false) 00046 , connect_ipv6_only_ (false) 00047 , use_ipv6_link_local_ (false) 00048 #endif /* ACE_HAS_IPV6 */ 00049 , negotiate_codesets_ (true) 00050 , ami_collication_ (true) 00051 , protocols_hooks_name_ ("Protocols_Hooks") 00052 , stub_factory_name_ ("Default_Stub_Factory") 00053 , endpoint_selector_factory_name_ ("Default_Endpoint_Selector_Factory") 00054 , thread_lane_resources_manager_factory_name_ ("Default_Thread_Lane_Resources_Manager_Factory") 00055 , poa_factory_name_ ("TAO_Object_Adapter_Factory") 00056 , poa_factory_directive_ 00057 (ACE_TEXT_ALWAYS_CHAR 00058 (ACE_DYNAMIC_SERVICE_DIRECTIVE("TAO_Object_Adapter_Factory", 00059 "TAO_PortableServer", 00060 "_make_TAO_Object_Adapter_Factory", 00061 ""))) 00062 , collocation_resolver_name_ ("Default_Collocation_Resolver") 00063 { 00064 for (int i = 0; i != TAO_NO_OF_MCAST_SERVICES; ++i) 00065 { 00066 this->service_port_[i] = 0; 00067 } 00068 } |
|
Definition at line 184 of file params.inl. References ace_sched_policy_.
00185 { 00186 this->ace_sched_policy_ = x; 00187 } |
|
Scheduling policy. Scheduling policy specified by the user through the -ORBSchedPolicy option. This value is typically used by functions like ACE_OS::thr_setprio() and ACE_Sched_Params::priority_min(). Legal values are ACE_SCHED_RR, ACE_SCHED_FIFO, and ACE_SCHED_OTHER. Definition at line 178 of file params.inl. References ace_sched_policy_.
00179 { 00180 return this->ace_sched_policy_; 00181 } |
|
Specifies the endpoints on which this server is willing to listen for requests. Definition at line 93 of file params.cpp. References ACE_CString, endpoints_map_, parse_and_add_endpoints(), and TAO_EndpointSet. Referenced by TAO_ORB_Core::init(), and TAO_ORB_Core::set_endpoint_helper().
00095 { 00096 TAO_EndpointSet endpoint_set; 00097 00098 // Parse the additional endpoints. 00099 int const result = 00100 this->parse_and_add_endpoints (additional_endpoints, 00101 endpoint_set); 00102 00103 // Parse failure. 00104 if (result != 0) 00105 return result; 00106 00107 // Look for the lane in the endpoints map. 00108 // 00109 // Return reference to endpoints string corresponding to lane 00110 // string. If none, a default constructed string is inserted into 00111 // the map and returned. 00112 ACE_CString & existing_endpoints = this->endpoints_map_[lane]; 00113 00114 // Create the resulting endpoints string. 00115 if (existing_endpoints.length () != 0) 00116 { 00117 existing_endpoints += ";"; 00118 } 00119 00120 existing_endpoints += additional_endpoints; 00121 00122 return 0; 00123 } |
|
Definition at line 295 of file params.inl. References ami_collication_.
00296 { 00297 return this->ami_collication_; 00298 } |
|
Definition at line 301 of file params.inl. References ami_collication_. Referenced by TAO_ORB_Core::init().
00302 { 00303 this->ami_collication_ = x; 00304 } |
|
Definition at line 74 of file params.inl. References cache_incoming_by_dotted_decimal_address_.
00075 { 00076 this->cache_incoming_by_dotted_decimal_address_ = x; 00077 } |
|
The ORB will cache incoming connections against the dotted decimal form of the peer's address Definition at line 68 of file params.inl. References cache_incoming_by_dotted_decimal_address_. Referenced by TAO_ORB_Core::init().
00069 { 00070 return this->cache_incoming_by_dotted_decimal_address_; 00071 } |
|
Definition at line 38 of file params.inl. References cdr_memcpy_tradeoff_.
00039 { 00040 this->cdr_memcpy_tradeoff_ = x; 00041 } |
|
Octet sequences are marshalled without doing any copies, we simply append a block to the CDR message block chain. When the octet sequence is small enough and there is room in the current message block it is more efficient just to copy the buffer. Definition at line 32 of file params.inl. References cdr_memcpy_tradeoff_. Referenced by TAO_Profile::create_tagged_profile(), TAO_Profile::encode(), TAO_ORB_Core::init(), CORBA::ORB::object_to_string(), TAO_GIOP_Message_Base::process_request_message(), TAO_ServerRequest::send_cached_reply(), and TAO_ServerRequest::tao_send_reply_exception().
00033 { 00034 return this->cdr_memcpy_tradeoff_; 00035 } |
|
Definition at line 313 of file params.inl. References collocation_resolver_name_.
00314 { 00315 return this->collocation_resolver_name_.c_str (); 00316 } |
|
Definition at line 307 of file params.inl. References collocation_resolver_name_.
00308 { 00309 this->collocation_resolver_name_ = s; 00310 } |
|
Definition at line 319 of file params.cpp. References connect_ipv6_only_.
00320 { 00321 return this->connect_ipv6_only_; 00322 } |
|
Definition at line 313 of file params.cpp. References connect_ipv6_only_. Referenced by TAO_ORB_Core::init(), TAO_IIOP_Endpoint::next_filtered(), TAO_IIOP_Connection_Handler::open(), TAO_IIOP_Acceptor::open(), TAO_Acceptor_Registry::open_default(), TAO_IIOP_Acceptor::open_i(), and TAO_IIOP_Acceptor::probe_interfaces().
00314 { 00315 this->connect_ipv6_only_ = p; 00316 } |
|
Definition at line 118 of file params.inl. References default_init_ref_.
00119 { 00120 this->default_init_ref_ = default_init_ref; 00121 } |
|
Set/Get the Init Reference of an arbitrary ObjectID.
Definition at line 124 of file params.inl. References CORBA::string_dup(). Referenced by TAO_ORB_Core::init(), TAO_ORB_Core::resolve_rir(), and CORBA::ORB::resolve_service().
00125 { 00126 return CORBA::string_dup (this->default_init_ref_.c_str ()); 00127 } |
|
Definition at line 276 of file params.inl. References disable_rt_collocation_resolver_.
00277 { 00278 this->disable_rt_collocation_resolver_ = x; 00279 } |
|
Mutators and accessors for rt_collocation_resolver.
Definition at line 270 of file params.inl. References disable_rt_collocation_resolver_. Referenced by TAO_ORB_Core::init().
00271 { 00272 return this->disable_rt_collocation_resolver_; 00273 } |
|
Definition at line 404 of file params.cpp. References endpoint_selector_factory_name_.
00405 { 00406 return this->endpoint_selector_factory_name_.c_str (); 00407 } |
|
Definition at line 398 of file params.cpp. References endpoint_selector_factory_name_. Referenced by TAO_ORB_Core::endpoint_selector_factory().
00399 { 00400 this->endpoint_selector_factory_name_ = s; 00401 } |
|
Definition at line 294 of file params.cpp. References enforce_preferred_interfaces_.
00295 { 00296 return this->enforce_preferred_interfaces_; 00297 } |
|
Definition at line 288 of file params.cpp. References enforce_preferred_interfaces_. Referenced by TAO_IIOP_Profile::decode_profile(), and TAO_ORB_Core::init().
00289 { 00290 this->enforce_preferred_interfaces_ = p; 00291 } |
|
Definition at line 71 of file params.cpp. References ACE_ASSERT, ACE_Array_Map< ACE_CString, ACE_CString >::end(), endpoints_map_, ACE_Array_Map< ACE_CString, ACE_CString >::find(), and parse_and_add_endpoints(). Referenced by TAO_Default_Thread_Lane_Resources_Manager::open_default_resources().
00073 { 00074 // Look for the lane in the endpoints map. 00075 endpoints_map_type::iterator const endpoints = 00076 this->endpoints_map_.find (lane); 00077 00078 // If lane is not in the map, <endpoint_set> remains empty 00079 if (endpoints == this->endpoints_map_.end ()) 00080 return; 00081 00082 // At this point, the parsing should not fail since they have been 00083 // parsed successfully before. 00084 int const result = 00085 this->parse_and_add_endpoints ((*endpoints).second, 00086 endpoint_set); 00087 00088 ACE_ASSERT (result == 0); 00089 ACE_UNUSED_ARG (result); 00090 } |
|
Definition at line 86 of file params.inl. References linger_.
00087 { 00088 this->linger_ = x; 00089 } |
|
The ORB will turn off SO_LINGER if this is zero.
Definition at line 80 of file params.inl. References linger_. Referenced by TAO_IIOP_Connection_Handler::close_connection(), and TAO_ORB_Core::init().
00081 { 00082 return this->linger_; 00083 } |
|
Maximum size of a GIOP message before outgoing fragmentation kicks in. Definition at line 50 of file params.inl. References CORBA::ULong.
00051 { 00052 this->max_message_size_ = size; 00053 } |
|
Maximum size of a GIOP message before outgoing fragmentation kicks in. Definition at line 44 of file params.inl. Referenced by TAO_ORB_Core::init().
00045 { 00046 return this->max_message_size_; 00047 } |
|
Definition at line 106 of file params.inl. References mcast_discovery_endpoint_, and CORBA::string_dup().
00107 { 00108 this->mcast_discovery_endpoint_ = CORBA::string_dup (mde); 00109 } |
|
Get/Set address:port for Multicast Discovery Protocol for the Naming Service. Definition at line 112 of file params.inl. References TAO::String_var< charT >::in(), and mcast_discovery_endpoint_. Referenced by TAO_ORB_Core::init(), and TAO_MCAST_Parser::multicast_query().
00113 { 00114 return this->mcast_discovery_endpoint_.in (); 00115 } |
|
Definition at line 283 of file params.inl. References negotiate_codesets_.
00284 { 00285 return this->negotiate_codesets_; 00286 } |
|
Definition at line 289 of file params.inl. References negotiate_codesets_. Referenced by TAO_ORB_Core::codeset_manager(), and TAO_ORB_Core::init().
00290 { 00291 this->negotiate_codesets_ = x; 00292 } |
|
Definition at line 148 of file params.inl. References nodelay_.
00149 { 00150 this->nodelay_ = x; 00151 } |
|
Set/Get the status of whether to use TCP_NODELAY or not.
Definition at line 142 of file params.inl. References nodelay_. Referenced by TAO_ORB_Core::init(), and TAO_IIOP_Connection_Handler::open().
00143 { 00144 return this->nodelay_; 00145 } |
|
Definition at line 252 of file params.inl. References parallel_connect_delay_.
00253 { 00254 this->parallel_connect_delay_ = x; 00255 } |
|
The milliseconds delay used to stagger individual connection starts when using parallel connects. Definition at line 246 of file params.inl. References parallel_connect_delay_. Referenced by TAO_ORB_Core::init(), and TAO_IIOP_Connector::make_parallel_connection().
00247 { 00248 return this->parallel_connect_delay_; 00249 } |
|
Definition at line 126 of file params.cpp. References ACE_CString, and ssize_t. Referenced by add_endpoints(), and get_endpoint_set().
00128 { 00129 // Parse the string into seperate endpoints, where `endpoints' is of 00130 // the form: 00131 // 00132 // protocol1://V,v@addr1,...,addrN;protocol2://addr1,...,W.w@addrN;... 00133 // 00134 // A single endpoint, instead of several, can be added just as well. 00135 00136 static char const endpoints_delimiter = ';'; 00137 00138 size_t const length = endpoints.length (); 00139 00140 if (endpoints[0] == endpoints_delimiter || 00141 endpoints[length - 1] == endpoints_delimiter) 00142 { 00143 return -1; 00144 // Failure: endpoints string has an empty endpoint at the 00145 // beginning or the end of the string 00146 // (e.g. ";uiop://foo;iiop://1.3@bar") 00147 } 00148 00149 int status = 0; 00150 // Return code: 0 = success, -1 = failure 00151 00152 if (length > 0) 00153 { 00154 int endpoints_count = 1; 00155 00156 for (size_t j = 0; j != length; ++j) 00157 { 00158 if (endpoints[j] == endpoints_delimiter) 00159 { 00160 ++endpoints_count; 00161 } 00162 } 00163 00164 ssize_t begin = 0; 00165 ssize_t end = endpoints.find (endpoints_delimiter); 00166 00167 for (int i = 0; i < endpoints_count; ++i) 00168 { 00169 if (end == 0) 00170 { 00171 // Handle case where two consecutive endpoints `;;' 00172 // delimiters are found within the endpoints set. 00173 // 00174 // Is it enough to just skip over it or should we return an 00175 // error? 00176 continue; 00177 } 00178 00179 ACE_CString const endpt = 00180 endpoints.substring (begin, end - begin); 00181 // The substring call will work even if `end' is equal to 00182 // ACE_CString::npos since that will just extract the substring 00183 // from the offset `begin' to the end of the string. 00184 00185 // Check for a valid URL style endpoint set 00186 ACE_CString::size_type const check_offset = endpt.find ("://"); 00187 00188 if (check_offset > 0 && 00189 check_offset != endpt.npos) 00190 { 00191 endpoint_set.enqueue_tail (endpt); 00192 // Insert endpoint into list 00193 } 00194 else 00195 { 00196 status = -1; // Error: invalid URL style endpoint set 00197 } 00198 00199 begin = end + 1; 00200 end = endpoints.find (endpoints_delimiter, begin); 00201 } 00202 } 00203 else 00204 { 00205 status = -1; 00206 // Failure: Empty string 00207 } 00208 00209 return status; 00210 } |
|
Definition at line 392 of file params.cpp. References poa_factory_directive_.
00393 { 00394 return this->poa_factory_directive_.c_str (); 00395 } |
|
Definition at line 386 of file params.cpp. References poa_factory_directive_.
00387 { 00388 this->poa_factory_directive_ = s; 00389 } |
|
Definition at line 380 of file params.cpp. References poa_factory_name_.
00381 { 00382 return this->poa_factory_name_.c_str (); 00383 } |
|
Definition at line 374 of file params.cpp. References poa_factory_name_. Referenced by TAO_ORB_Core::init(), and TAO_ORB_Core::root_poa().
00375 { 00376 this->poa_factory_name_ = s; 00377 } |
|
Definition at line 307 of file params.cpp. References prefer_ipv6_interfaces_.
00308 { 00309 return this->prefer_ipv6_interfaces_; 00310 } |
|
Definition at line 301 of file params.cpp. References prefer_ipv6_interfaces_. Referenced by TAO_ORB_Core::init(), and TAO_IIOP_Endpoint::next_filtered().
00302 { 00303 this->prefer_ipv6_interfaces_ = p; 00304 } |
|
Definition at line 282 of file params.cpp. References pref_network_.
00283 { 00284 return this->pref_network_.c_str (); 00285 } |
|
Accepts the list of preferred interfaces and does a simple semantic check on the string Definition at line 213 of file params.cpp. References pref_network_. Referenced by TAO_IIOP_Profile::decode_profile(), and TAO_ORB_Core::init().
00214 { 00215 // Validates that s contains one or more comma separated 00216 // interfaces each consisting of a string with a single 00217 // assignment separator ('=' or ':') 00218 // Any other char is legal, although '*' and '?' will be 00219 // treated as wildcards. 00220 const char* p = s; 00221 bool expect_assign = false; 00222 bool expect_comma = false; 00223 bool expect_char = true; 00224 bool expect_wild = true; 00225 bool found_remote = false; 00226 while (*p != 0) 00227 { 00228 switch (*p) 00229 { 00230 #if !defined (ACE_HAS_IPV6) 00231 // Can't use this as assignment operator when IPv6 decimal 00232 // addresses may be involved. 00233 case ':': 00234 #endif /* ACE_HAS_IPV6 */ 00235 case '=': 00236 if (! expect_assign) 00237 return false; 00238 found_remote = true; 00239 expect_assign = false; 00240 expect_char = true; 00241 expect_comma = false; 00242 expect_wild = true; 00243 break; 00244 case ',': 00245 if (! expect_comma) 00246 return false; 00247 found_remote = false; 00248 expect_assign = false; 00249 expect_char = true; 00250 expect_comma = false; 00251 expect_wild = true; 00252 break; 00253 case '*': 00254 case '?': 00255 if (! expect_wild) 00256 return false; 00257 expect_assign = ! found_remote; 00258 expect_char = true; 00259 expect_comma = found_remote; 00260 expect_wild = false; 00261 break; 00262 default: 00263 if (! expect_char) 00264 return false; 00265 expect_assign = ! found_remote; 00266 expect_char = true; 00267 expect_comma = found_remote; 00268 expect_wild = true; 00269 break; 00270 } 00271 ++p; 00272 } 00273 if (!expect_comma || expect_assign) 00274 return false; 00275 00276 this->pref_network_ = s; 00277 00278 return true; 00279 } |
|
Definition at line 344 of file params.cpp. References protocols_hooks_name_.
00345 { 00346 return this->protocols_hooks_name_.c_str (); 00347 } |
|
Definition at line 338 of file params.cpp. References protocols_hooks_name_. Referenced by TAO_ORB_Core::init().
00339 { 00340 this->protocols_hooks_name_ = s; 00341 } |
|
Definition at line 196 of file params.inl. References sched_policy_.
00197 { 00198 this->sched_policy_ = x; 00199 } |
|
Scheduling policy flag. Scheduling policy specified by the user through the -ORBSchedPolicy option. This value is typically used by ACE thread creation functions. Legal values are THR_SCHED_RR, THR_SCHED_FIFO, and THR_SCHED_DEFAULT. Definition at line 190 of file params.inl. References sched_policy_. Referenced by thread_creation_flags().
00191 { 00192 return this->sched_policy_; 00193 } |
|
Definition at line 208 of file params.inl. References scope_policy_.
00209 { 00210 this->scope_policy_ = x; 00211 } |
|
Scheduling scope flag. Scheduling policy specified by the user through the -ORBScopePolicy option. This value is typically used by ACE thread creation functions. Legal values are THR_SCOPE_SYSTEM and THR_SCOPE_PROCESS. Definition at line 202 of file params.inl. References scope_policy_. Referenced by thread_creation_flags().
00203 { 00204 return this->scope_policy_; 00205 } |
|
Definition at line 93 of file params.inl. References service_port_.
00095 { 00096 this->service_port_[service_id] = port; 00097 } |
|
Set/Get the port of services locatable through multicast.
Definition at line 100 of file params.inl. References service_port_. Referenced by TAO_ORB_Core::init(), and CORBA::ORB::resolve_service().
00101 { 00102 return this->service_port_[service_id]; 00103 } |
|
Definition at line 264 of file params.inl. References shared_profile_.
00265 { 00266 this->shared_profile_ = x; 00267 } |
|
Create shared profiles without priority.
Definition at line 258 of file params.inl. References shared_profile_. Referenced by TAO_IIOP_Acceptor::create_profile(), TAO_ORB_Core::init(), and TAO_CORBALOC_Parser::parse_string().
00259 { 00260 return this->shared_profile_; 00261 } |
|
Definition at line 228 of file params.inl. References single_read_optimization_.
00229 { 00230 this->single_read_optimization_ = x; 00231 } |
|
Single read optimization.
Definition at line 222 of file params.inl. References single_read_optimization_. Referenced by TAO_Transport::handle_input_parse_data(), and TAO_ORB_Core::init().
00223 { 00224 return this->single_read_optimization_; 00225 } |
|
Definition at line 172 of file params.inl. References sock_dontroute_.
00173 { 00174 this->sock_dontroute_ = x; 00175 } |
|
Set/Get whether we should set SO_DONTROUTE on the socket or not.
Definition at line 166 of file params.inl. References sock_dontroute_. Referenced by TAO_ORB_Core::init(), and TAO_IIOP_Connection_Handler::open().
00167 { 00168 return this->sock_dontroute_; 00169 } |
|
Definition at line 160 of file params.inl. References sock_keepalive_.
00161 { 00162 this->sock_keepalive_ = x; 00163 } |
|
Set/Get whether we should set SO_KEEPALIVE on the socket or not.
Definition at line 154 of file params.inl. References sock_keepalive_. Referenced by TAO_ORB_Core::init(), and TAO_IIOP_Connection_Handler::open().
00155 { 00156 return this->sock_keepalive_; 00157 } |
|
Definition at line 14 of file params.inl. References sock_rcvbuf_size_.
00015 { 00016 sock_rcvbuf_size_ = s; 00017 } |
|
Set/Get the size to be used for a socket's receive buffer.
Definition at line 8 of file params.inl. References sock_rcvbuf_size_. Referenced by TAO_ORB_Core::init(), and TAO_IIOP_Connection_Handler::open().
00009 { 00010 return sock_rcvbuf_size_; 00011 } |
|
Definition at line 26 of file params.inl. References sock_sndbuf_size_.
00027 { 00028 sock_sndbuf_size_ = s; 00029 } |
|
Set/Get the size to be used for a socket's send buffer.
Definition at line 20 of file params.inl. References sock_sndbuf_size_. Referenced by TAO_ORB_Core::init(), and TAO_IIOP_Connection_Handler::open().
00021 { 00022 return sock_sndbuf_size_; 00023 } |
|
Definition at line 136 of file params.inl. References std_profile_components_.
00137 { 00138 this->std_profile_components_ = x; 00139 } |
|
Disable the OMG standard profile components, useful for homogenous environments. Definition at line 130 of file params.inl. References std_profile_components_. Referenced by TAO_IIOP_Acceptor::create_new_profile(), TAO_IIOP_Acceptor::create_shared_profile(), TAO_ORB_Core::init(), and TAO_Profile::verify_orb_configuration().
00131 { 00132 return this->std_profile_components_; 00133 } |
|
Definition at line 368 of file params.cpp. References stub_factory_name_.
00369 { 00370 return this->stub_factory_name_.c_str (); 00371 } |
|
Definition at line 362 of file params.cpp. References stub_factory_name_. Referenced by TAO_ORB_Core::stub_factory().
00363 { 00364 this->stub_factory_name_ = s; 00365 } |
|
Thread creation flags. Shorthand for OR'ing together the scope_policy and sched_policy. Definition at line 214 of file params.inl. References sched_policy(), and scope_policy().
00215 { 00216 return 00217 this->scope_policy () | 00218 this->sched_policy (); 00219 } |
|
Definition at line 356 of file params.cpp. References thread_lane_resources_manager_factory_name_.
00357 { 00358 return this->thread_lane_resources_manager_factory_name_.c_str (); 00359 } |
|
Definition at line 350 of file params.cpp. References thread_lane_resources_manager_factory_name_. Referenced by TAO_ORB_Core::thread_lane_resources_manager().
00351 { 00352 this->thread_lane_resources_manager_factory_name_ = s; 00353 } |
|
Definition at line 62 of file params.inl. References use_dotted_decimal_addresses_.
00063 { 00064 this->use_dotted_decimal_addresses_ = x; 00065 } |
|
The ORB will use the dotted decimal notation for addresses. By default we use the full ascii names. Definition at line 56 of file params.inl. References use_dotted_decimal_addresses_. Referenced by TAO_IIOP_Acceptor::hostname(), and TAO_ORB_Core::init().
00057 { 00058 return this->use_dotted_decimal_addresses_; 00059 } |
|
Definition at line 331 of file params.cpp. References use_ipv6_link_local_.
00332 { 00333 return this->use_ipv6_link_local_; 00334 } |
|
Definition at line 325 of file params.cpp. References use_ipv6_link_local_. Referenced by TAO_ORB_Core::init(), and TAO_IIOP_Acceptor::probe_interfaces().
00326 { 00327 this->use_ipv6_link_local_ = p; 00328 } |
|
Definition at line 240 of file params.inl. References use_parallel_connects_.
00241 { 00242 this->use_parallel_connects_ = x; 00243 } |
|
Want to use parallel connection attempts when profiles have multiple endpoints. Definition at line 234 of file params.inl. References use_parallel_connects_. Referenced by TAO_ORB_Core::init(), and TAO::Profile_Transport_Resolver::use_parallel_connect().
00235 { 00236 return this->use_parallel_connects_; 00237 } |
|
Scheduling policy. Scheduling policy specified by the user through the -ORBSchedPolicy option. This value is typically used by functions like ACE_OS::thr_setprio() and ACE_Sched_Params::priority_min(). Legal values are ACE_SCHED_RR, ACE_SCHED_FIFO, and ACE_SCHED_OTHER. Definition at line 322 of file params.h. Referenced by ace_sched_policy(). |
|
Do we make collocated ami calls.
Definition at line 394 of file params.h. Referenced by ami_collication(). |
|
If incoming connections should be cached against IP (true) or hostname (false). Definition at line 306 of file params.h. Referenced by cache_incoming_by_dotted_decimal_address(). |
|
Control the strategy for copying vs. appeding octet sequences in CDR streams. Definition at line 292 of file params.h. Referenced by cdr_memcpy_tradeoff(). |
|
Name of the collocation resolver that needs to be instantiated. The default value is "Default_Collocation_Resolver". If TAO_RTCORBA is linked, the set_collocation_resolver will be called to set the value to be "RT_Collocation_Resolver". Definition at line 449 of file params.h. Referenced by collocation_resolver_name(). |
|
Only connect to (client) or listen on and accept from (server) IPv6 interfaces Yes or No. Definition at line 384 of file params.h. Referenced by connect_ipv6_only(). |
|
List of comma separated prefixes from ORBDefaultInitRef.
Definition at line 273 of file params.h. Referenced by default_init_ref(). |
|
Default collocation resolver. The vanilla ORB has only one collocation resolver. But if the RTORB is in place, the RTORB can get in a new collocation resolver. There are some applications that would like to use the default collocation resolver with the RTORB. This boolean is the value of the option that the application passes in to enable/disable the use of RT collocation resolver with the RTORB. The default value is false to indicate that the RT_Collocation_Resolver will be loaded if the RTORB is used. Definition at line 372 of file params.h. Referenced by disable_rt_collocation_resolver(). |
|
Name of the endpoint selector factory that needs to be instantiated. The default value is "Default_Endpoint_Selector_Factory". If TAO_RTCORBA is linked, the set_endpoint_selector_factory will be called to set the value to be "RT_Endpoint_Selector_Factory". Definition at line 417 of file params.h. Referenced by endpoint_selector_factory_name(). |
|
Map of endpoints this server is willing to accept requests on.
Definition at line 263 of file params.h. Referenced by add_endpoints(), and get_endpoint_set(). |
|
Definition at line 374 of file params.h. Referenced by enforce_pref_interfaces(). |
|
For setting the SO_LINGER option.
Definition at line 309 of file params.h. Referenced by linger(). |
|
Maximum GIOP message size to be sent over a given transport. Setting a maximum message size will cause outgoing GIOP fragmentation to be enabled. |
|
Address:port for Multicast Discovery Protocol for the Naming Service. Definition at line 270 of file params.h. Referenced by mcast_discovery_endpoint(). |
|
Enable the use of codeset negotiation.
Definition at line 391 of file params.h. Referenced by negotiate_codesets(). |
|
1 if we're using TCP_NODELAY and 0 otherwise.
Definition at line 282 of file params.h. Referenced by nodelay(). |
|
When using parallel connects, this delay is used to stagger connection attempts. This gives a trade-off between opening more potential connections than necessary vs increasing the potential time before a good connection is discovered. Time is expressed in milliseconds. Definition at line 356 of file params.h. Referenced by parallel_connect_delay(). |
|
The service configurator directive used to load poa_factory_name_ dynamically. Definition at line 441 of file params.h. Referenced by poa_factory_directive(). |
|
Name of the service object used to create the RootPOA. The default value is "TAO_POA". If TAO_RTCORBA is loaded, this will be changed to TAO_RT_POA so that a POA equipped with realtime extensions will be returned. Definition at line 435 of file params.h. Referenced by poa_factory_name(). |
|
Preferred network interfaces as a string.
Definition at line 359 of file params.h. Referenced by preferred_interfaces(). |
|
Prefer to connect IPv6 over IPv4 Yes or No.
Definition at line 378 of file params.h. Referenced by prefer_ipv6_interfaces(). |
|
Name of the protocols_hooks that needs to be instantiated. The default value is "Protocols_Hooks". If RTCORBA option is set, its value will be set to be "RT_Protocols_Hooks". Definition at line 401 of file params.h. Referenced by protocols_hooks_name(). |
|
Scheduling policy flag. Scheduling policy specified by the user through the -ORBSchedPolicy option. This value is typically used by ACE thread creation functions. Legal values are THR_SCHED_RR, THR_SCHED_FIFO, and THR_SCHED_DEFAULT. Definition at line 331 of file params.h. Referenced by sched_policy(). |
|
Scheduling scope flag. Scheduling policy specified by the user through the -ORBScopePolicy option. This value is typically used by ACE thread creation functions. Legal values are THR_SCOPE_SYSTEM and THR_SCOPE_PROCESS. Definition at line 340 of file params.h. Referenced by scope_policy(). |
|
Port numbers of the configured services.
Definition at line 266 of file params.h. Referenced by service_port(), and TAO_ORB_Parameters(). |
|
Shared Profile - Use the same profile for multiple endpoints.
Definition at line 346 of file params.h. Referenced by shared_profile(). |
|
Single read optimization.
Definition at line 343 of file params.h. Referenced by single_read_optimization(). |
|
1 if we're using SO_DONTROUTE and 0 otherwise (default 0).
Definition at line 288 of file params.h. Referenced by sock_dontroute(). |
|
1 if we're using SO_KEEPALIVE and 0 otherwise (default 0).
Definition at line 285 of file params.h. Referenced by sock_keepalive(). |
|
Size to be used for a socket's receive buffer.
Definition at line 276 of file params.h. Referenced by sock_rcvbuf_size(). |
|
Size to be used for a socket's send buffer.
Definition at line 279 of file params.h. Referenced by sock_sndbuf_size(). |
|
If true then the standard OMG components are not generated.
Definition at line 312 of file params.h. Referenced by std_profile_components(). |
|
Name of the stub factory that needs to be instantiated. The default value is "Default_Stub_Factory". If TAO_RTCORBA is linked, the set_stub_factory will be called to set the value to be "RT_Stub_Factory". Definition at line 409 of file params.h. Referenced by stub_factory_name(). |
|
Name of the thread lane resources manager that needs to be instantiated. The default value is "Default_Thread_Lane_Resources_Manager_Factory". If TAO_RTCORBA is linked, the set_thread_lane_resources_manager will be called to set the value to be "RT_Thread_Lane_Resources_Manager_Factory". Definition at line 427 of file params.h. Referenced by thread_lane_resources_manager_factory_name(). |
|
For selecting a address notation.
Definition at line 302 of file params.h. Referenced by use_dotted_decimal_addresses(). |
|
Include Link Local IPv6 profiles to IOR Yes or No.
Definition at line 387 of file params.h. Referenced by use_ipv6_link_local(). |
|
Use Parallel Connects - Try to connect to all endpoints in a shared profile at once, use the first to complete. Definition at line 350 of file params.h. Referenced by use_parallel_connects(). |