00001 // -*- C++ -*- 00002 // 00003 // $Id: params.inl 79221 2007-08-06 11:01:22Z johnnyw $ 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 void 00093 TAO_ORB_Parameters::service_port (TAO::MCAST_SERVICEID service_id, 00094 CORBA::UShort port) 00095 { 00096 this->service_port_[service_id] = port; 00097 } 00098 00099 ACE_INLINE CORBA::UShort 00100 TAO_ORB_Parameters::service_port (TAO::MCAST_SERVICEID service_id) const 00101 { 00102 return this->service_port_[service_id]; 00103 } 00104 00105 ACE_INLINE void 00106 TAO_ORB_Parameters::mcast_discovery_endpoint (const char *mde) 00107 { 00108 this->mcast_discovery_endpoint_ = CORBA::string_dup (mde); 00109 } 00110 00111 ACE_INLINE const char * 00112 TAO_ORB_Parameters::mcast_discovery_endpoint (void) const 00113 { 00114 return this->mcast_discovery_endpoint_.in (); 00115 } 00116 00117 ACE_INLINE void 00118 TAO_ORB_Parameters::default_init_ref (const char *default_init_ref) 00119 { 00120 this->default_init_ref_ = default_init_ref; 00121 } 00122 00123 ACE_INLINE char * 00124 TAO_ORB_Parameters::default_init_ref (void) const 00125 { 00126 return CORBA::string_dup (this->default_init_ref_.c_str ()); 00127 } 00128 00129 ACE_INLINE int 00130 TAO_ORB_Parameters::std_profile_components (void) const 00131 { 00132 return this->std_profile_components_; 00133 } 00134 00135 ACE_INLINE void 00136 TAO_ORB_Parameters::std_profile_components (int x) 00137 { 00138 this->std_profile_components_ = x; 00139 } 00140 00141 ACE_INLINE int 00142 TAO_ORB_Parameters::nodelay (void) const 00143 { 00144 return this->nodelay_; 00145 } 00146 00147 ACE_INLINE void 00148 TAO_ORB_Parameters::nodelay (int x) 00149 { 00150 this->nodelay_ = x; 00151 } 00152 00153 ACE_INLINE int 00154 TAO_ORB_Parameters::sock_keepalive (void) 00155 { 00156 return this->sock_keepalive_; 00157 } 00158 00159 ACE_INLINE void 00160 TAO_ORB_Parameters::sock_keepalive (int x) 00161 { 00162 this->sock_keepalive_ = x; 00163 } 00164 00165 ACE_INLINE int 00166 TAO_ORB_Parameters::sock_dontroute (void) 00167 { 00168 return this->sock_dontroute_; 00169 } 00170 00171 ACE_INLINE void 00172 TAO_ORB_Parameters::sock_dontroute (int x) 00173 { 00174 this->sock_dontroute_ = x; 00175 } 00176 00177 ACE_INLINE int 00178 TAO_ORB_Parameters::ace_sched_policy (void) const 00179 { 00180 return this->ace_sched_policy_; 00181 } 00182 00183 ACE_INLINE void 00184 TAO_ORB_Parameters::ace_sched_policy (int x) 00185 { 00186 this->ace_sched_policy_ = x; 00187 } 00188 00189 ACE_INLINE long 00190 TAO_ORB_Parameters::sched_policy (void) const 00191 { 00192 return this->sched_policy_; 00193 } 00194 00195 ACE_INLINE void 00196 TAO_ORB_Parameters::sched_policy (long x) 00197 { 00198 this->sched_policy_ = x; 00199 } 00200 00201 ACE_INLINE long 00202 TAO_ORB_Parameters::scope_policy (void) const 00203 { 00204 return this->scope_policy_; 00205 } 00206 00207 ACE_INLINE void 00208 TAO_ORB_Parameters::scope_policy (long x) 00209 { 00210 this->scope_policy_ = x; 00211 } 00212 00213 ACE_INLINE long 00214 TAO_ORB_Parameters::thread_creation_flags (void) const 00215 { 00216 return 00217 this->scope_policy () | 00218 this->sched_policy (); 00219 } 00220 00221 ACE_INLINE int 00222 TAO_ORB_Parameters::single_read_optimization (void) const 00223 { 00224 return this->single_read_optimization_; 00225 } 00226 00227 ACE_INLINE void 00228 TAO_ORB_Parameters::single_read_optimization (int x) 00229 { 00230 this->single_read_optimization_ = x; 00231 } 00232 00233 ACE_INLINE bool 00234 TAO_ORB_Parameters::use_parallel_connects (void) const 00235 { 00236 return this->use_parallel_connects_; 00237 } 00238 00239 ACE_INLINE void 00240 TAO_ORB_Parameters::use_parallel_connects (bool x) 00241 { 00242 this->use_parallel_connects_ = x; 00243 } 00244 00245 ACE_INLINE unsigned long 00246 TAO_ORB_Parameters::parallel_connect_delay (void) const 00247 { 00248 return this->parallel_connect_delay_; 00249 } 00250 00251 ACE_INLINE void 00252 TAO_ORB_Parameters::parallel_connect_delay (unsigned long x) 00253 { 00254 this->parallel_connect_delay_ = x; 00255 } 00256 00257 ACE_INLINE int 00258 TAO_ORB_Parameters::shared_profile (void) const 00259 { 00260 return this->shared_profile_; 00261 } 00262 00263 ACE_INLINE void 00264 TAO_ORB_Parameters::shared_profile (int x) 00265 { 00266 this->shared_profile_ = x; 00267 } 00268 00269 ACE_INLINE bool 00270 TAO_ORB_Parameters::disable_rt_collocation_resolver (void) const 00271 { 00272 return this->disable_rt_collocation_resolver_; 00273 } 00274 00275 ACE_INLINE void 00276 TAO_ORB_Parameters::disable_rt_collocation_resolver (bool x) 00277 { 00278 this->disable_rt_collocation_resolver_ = x; 00279 } 00280 00281 00282 ACE_INLINE bool 00283 TAO_ORB_Parameters::negotiate_codesets (void) const 00284 { 00285 return this->negotiate_codesets_; 00286 } 00287 00288 ACE_INLINE void 00289 TAO_ORB_Parameters::negotiate_codesets (bool x) 00290 { 00291 this->negotiate_codesets_ = x; 00292 } 00293 00294 ACE_INLINE bool 00295 TAO_ORB_Parameters::ami_collication (void) const 00296 { 00297 return this->ami_collication_; 00298 } 00299 00300 ACE_INLINE void 00301 TAO_ORB_Parameters::ami_collication (bool x) 00302 { 00303 this->ami_collication_ = x; 00304 } 00305 00306 ACE_INLINE void 00307 TAO_ORB_Parameters::collocation_resolver_name (const char *s) 00308 { 00309 this->collocation_resolver_name_ = s; 00310 } 00311 00312 ACE_INLINE const char * 00313 TAO_ORB_Parameters::collocation_resolver_name (void) const 00314 { 00315 return this->collocation_resolver_name_.c_str (); 00316 } 00317 00318 TAO_END_VERSIONED_NAMESPACE_DECL