00001 // -*- C++ -*- 00002 // 00003 // $Id: params.inl 86232 2009-07-24 21:52:20Z dai_y $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE int 00008 TAO_ORB_Parameters::sock_rcvbuf_size (void) const 00009 { 00010 return sock_rcvbuf_size_; 00011 } 00012 00013 ACE_INLINE void 00014 TAO_ORB_Parameters::sock_rcvbuf_size (int s) 00015 { 00016 sock_rcvbuf_size_ = s; 00017 } 00018 00019 ACE_INLINE int 00020 TAO_ORB_Parameters::sock_sndbuf_size (void) const 00021 { 00022 return sock_sndbuf_size_; 00023 } 00024 00025 ACE_INLINE void 00026 TAO_ORB_Parameters::sock_sndbuf_size (int s) 00027 { 00028 sock_sndbuf_size_ = s; 00029 } 00030 00031 ACE_INLINE int 00032 TAO_ORB_Parameters::cdr_memcpy_tradeoff (void) const 00033 { 00034 return this->cdr_memcpy_tradeoff_; 00035 } 00036 00037 ACE_INLINE void 00038 TAO_ORB_Parameters::cdr_memcpy_tradeoff (int x) 00039 { 00040 this->cdr_memcpy_tradeoff_ = x; 00041 } 00042 00043 ACE_INLINE ACE_CDR::ULong 00044 TAO_ORB_Parameters::max_message_size (void) const 00045 { 00046 return this->max_message_size_; 00047 } 00048 00049 ACE_INLINE void 00050 TAO_ORB_Parameters::max_message_size (ACE_CDR::ULong size) 00051 { 00052 this->max_message_size_ = size; 00053 } 00054 00055 ACE_INLINE int 00056 TAO_ORB_Parameters::use_dotted_decimal_addresses (void) const 00057 { 00058 return this->use_dotted_decimal_addresses_; 00059 } 00060 00061 ACE_INLINE void 00062 TAO_ORB_Parameters::use_dotted_decimal_addresses (int x) 00063 { 00064 this->use_dotted_decimal_addresses_ = x; 00065 } 00066 00067 ACE_INLINE int 00068 TAO_ORB_Parameters::cache_incoming_by_dotted_decimal_address (void) const 00069 { 00070 return this->cache_incoming_by_dotted_decimal_address_; 00071 } 00072 00073 ACE_INLINE void 00074 TAO_ORB_Parameters::cache_incoming_by_dotted_decimal_address (int x) 00075 { 00076 this->cache_incoming_by_dotted_decimal_address_ = x; 00077 } 00078 00079 ACE_INLINE int 00080 TAO_ORB_Parameters::linger (void) const 00081 { 00082 return this->linger_; 00083 } 00084 00085 ACE_INLINE void 00086 TAO_ORB_Parameters::linger (int x) 00087 { 00088 this->linger_ = x; 00089 } 00090 00091 00092 ACE_INLINE time_t 00093 TAO_ORB_Parameters::accept_error_delay (void) const 00094 { 00095 return this->accept_error_delay_; 00096 } 00097 00098 ACE_INLINE void 00099 TAO_ORB_Parameters::accept_error_delay (time_t x) 00100 { 00101 this->accept_error_delay_ = x; 00102 } 00103 00104 00105 ACE_INLINE void 00106 TAO_ORB_Parameters::service_port (TAO::MCAST_SERVICEID service_id, 00107 CORBA::UShort port) 00108 { 00109 this->service_port_[service_id] = port; 00110 } 00111 00112 ACE_INLINE CORBA::UShort 00113 TAO_ORB_Parameters::service_port (TAO::MCAST_SERVICEID service_id) const 00114 { 00115 return this->service_port_[service_id]; 00116 } 00117 00118 ACE_INLINE void 00119 TAO_ORB_Parameters::mcast_discovery_endpoint (const char *mde) 00120 { 00121 this->mcast_discovery_endpoint_ = CORBA::string_dup (mde); 00122 } 00123 00124 ACE_INLINE const char * 00125 TAO_ORB_Parameters::mcast_discovery_endpoint (void) const 00126 { 00127 return this->mcast_discovery_endpoint_.in (); 00128 } 00129 00130 ACE_INLINE void 00131 TAO_ORB_Parameters::default_init_ref (const char *default_init_ref) 00132 { 00133 this->default_init_ref_ = default_init_ref; 00134 } 00135 00136 ACE_INLINE char * 00137 TAO_ORB_Parameters::default_init_ref (void) const 00138 { 00139 return CORBA::string_dup (this->default_init_ref_.c_str ()); 00140 } 00141 00142 ACE_INLINE bool 00143 TAO_ORB_Parameters::std_profile_components (void) const 00144 { 00145 return this->std_profile_components_; 00146 } 00147 00148 ACE_INLINE void 00149 TAO_ORB_Parameters::std_profile_components (bool x) 00150 { 00151 this->std_profile_components_ = x; 00152 } 00153 00154 ACE_INLINE int 00155 TAO_ORB_Parameters::nodelay (void) const 00156 { 00157 return this->nodelay_; 00158 } 00159 00160 ACE_INLINE void 00161 TAO_ORB_Parameters::nodelay (int x) 00162 { 00163 this->nodelay_ = x; 00164 } 00165 00166 ACE_INLINE int 00167 TAO_ORB_Parameters::sock_keepalive (void) 00168 { 00169 return this->sock_keepalive_; 00170 } 00171 00172 ACE_INLINE void 00173 TAO_ORB_Parameters::sock_keepalive (int x) 00174 { 00175 this->sock_keepalive_ = x; 00176 } 00177 00178 ACE_INLINE int 00179 TAO_ORB_Parameters::sock_dontroute (void) 00180 { 00181 return this->sock_dontroute_; 00182 } 00183 00184 ACE_INLINE void 00185 TAO_ORB_Parameters::sock_dontroute (int x) 00186 { 00187 this->sock_dontroute_ = x; 00188 } 00189 00190 ACE_INLINE int 00191 TAO_ORB_Parameters::ip_hoplimit (void) 00192 { 00193 return this->ip_hoplimit_; 00194 } 00195 00196 ACE_INLINE void 00197 TAO_ORB_Parameters::ip_hoplimit (int x) 00198 { 00199 this->ip_hoplimit_ = x; 00200 } 00201 00202 ACE_INLINE bool 00203 TAO_ORB_Parameters::ip_multicastloop (void) 00204 { 00205 return this->ip_multicastloop_; 00206 } 00207 00208 ACE_INLINE void 00209 TAO_ORB_Parameters::ip_multicastloop (bool x) 00210 { 00211 this->ip_multicastloop_ = x; 00212 } 00213 00214 ACE_INLINE int 00215 TAO_ORB_Parameters::ace_sched_policy (void) const 00216 { 00217 return this->ace_sched_policy_; 00218 } 00219 00220 ACE_INLINE void 00221 TAO_ORB_Parameters::ace_sched_policy (int x) 00222 { 00223 this->ace_sched_policy_ = x; 00224 } 00225 00226 ACE_INLINE long 00227 TAO_ORB_Parameters::sched_policy (void) const 00228 { 00229 return this->sched_policy_; 00230 } 00231 00232 ACE_INLINE void 00233 TAO_ORB_Parameters::sched_policy (long x) 00234 { 00235 this->sched_policy_ = x; 00236 } 00237 00238 ACE_INLINE long 00239 TAO_ORB_Parameters::scope_policy (void) const 00240 { 00241 return this->scope_policy_; 00242 } 00243 00244 ACE_INLINE void 00245 TAO_ORB_Parameters::scope_policy (long x) 00246 { 00247 this->scope_policy_ = x; 00248 } 00249 00250 ACE_INLINE long 00251 TAO_ORB_Parameters::thread_creation_flags (void) const 00252 { 00253 return 00254 this->scope_policy () | 00255 this->sched_policy (); 00256 } 00257 00258 ACE_INLINE int 00259 TAO_ORB_Parameters::single_read_optimization (void) const 00260 { 00261 return this->single_read_optimization_; 00262 } 00263 00264 ACE_INLINE void 00265 TAO_ORB_Parameters::single_read_optimization (int x) 00266 { 00267 this->single_read_optimization_ = x; 00268 } 00269 00270 ACE_INLINE bool 00271 TAO_ORB_Parameters::use_parallel_connects (void) const 00272 { 00273 return this->use_parallel_connects_; 00274 } 00275 00276 ACE_INLINE void 00277 TAO_ORB_Parameters::use_parallel_connects (bool x) 00278 { 00279 this->use_parallel_connects_ = x; 00280 } 00281 00282 ACE_INLINE unsigned long 00283 TAO_ORB_Parameters::parallel_connect_delay (void) const 00284 { 00285 return this->parallel_connect_delay_; 00286 } 00287 00288 ACE_INLINE void 00289 TAO_ORB_Parameters::parallel_connect_delay (unsigned long x) 00290 { 00291 this->parallel_connect_delay_ = x; 00292 } 00293 00294 ACE_INLINE int 00295 TAO_ORB_Parameters::shared_profile (void) const 00296 { 00297 return this->shared_profile_; 00298 } 00299 00300 ACE_INLINE void 00301 TAO_ORB_Parameters::shared_profile (int x) 00302 { 00303 this->shared_profile_ = x; 00304 } 00305 00306 ACE_INLINE bool 00307 TAO_ORB_Parameters::disable_rt_collocation_resolver (void) const 00308 { 00309 return this->disable_rt_collocation_resolver_; 00310 } 00311 00312 ACE_INLINE void 00313 TAO_ORB_Parameters::disable_rt_collocation_resolver (bool x) 00314 { 00315 this->disable_rt_collocation_resolver_ = x; 00316 } 00317 00318 00319 ACE_INLINE bool 00320 TAO_ORB_Parameters::negotiate_codesets (void) const 00321 { 00322 return this->negotiate_codesets_; 00323 } 00324 00325 ACE_INLINE void 00326 TAO_ORB_Parameters::negotiate_codesets (bool x) 00327 { 00328 this->negotiate_codesets_ = x; 00329 } 00330 00331 ACE_INLINE bool 00332 TAO_ORB_Parameters::ami_collication (void) const 00333 { 00334 return this->ami_collication_; 00335 } 00336 00337 ACE_INLINE void 00338 TAO_ORB_Parameters::ami_collication (bool x) 00339 { 00340 this->ami_collication_ = x; 00341 } 00342 00343 ACE_INLINE void 00344 TAO_ORB_Parameters::collocation_resolver_name (const char *s) 00345 { 00346 this->collocation_resolver_name_ = s; 00347 } 00348 00349 ACE_INLINE const char * 00350 TAO_ORB_Parameters::collocation_resolver_name (void) const 00351 { 00352 return this->collocation_resolver_name_.c_str (); 00353 } 00354 00355 ACE_INLINE bool 00356 TAO_ORB_Parameters::forward_invocation_on_object_not_exist (void) const 00357 { 00358 return this->forward_invocation_on_object_not_exist_; 00359 } 00360 00361 ACE_INLINE void 00362 TAO_ORB_Parameters::forward_invocation_on_object_not_exist (bool x) 00363 { 00364 this->forward_invocation_on_object_not_exist_ = x; 00365 } 00366 00367 ACE_INLINE int 00368 TAO_ORB_Parameters::forward_once_exception (void) const 00369 { 00370 return this->forward_once_exception_; 00371 } 00372 00373 ACE_INLINE void 00374 TAO_ORB_Parameters::forward_once_exception (const int ef) 00375 { 00376 this->forward_once_exception_ |= ef; 00377 } 00378 00379 00380 TAO_END_VERSIONED_NAMESPACE_DECL