// -*- C++ -*-
//
// $Id: params.inl 86232 2009-07-24 21:52:20Z dai_y $

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE int
TAO_ORB_Parameters::sock_rcvbuf_size (void) const
{
  return sock_rcvbuf_size_;
}

ACE_INLINE void
TAO_ORB_Parameters::sock_rcvbuf_size (int s)
{
  sock_rcvbuf_size_ = s;
}

ACE_INLINE int
TAO_ORB_Parameters::sock_sndbuf_size (void) const
{
  return sock_sndbuf_size_;
}

ACE_INLINE void
TAO_ORB_Parameters::sock_sndbuf_size (int s)
{
  sock_sndbuf_size_ = s;
}

ACE_INLINE int
TAO_ORB_Parameters::cdr_memcpy_tradeoff (void) const
{
  return this->cdr_memcpy_tradeoff_;
}

ACE_INLINE void
TAO_ORB_Parameters::cdr_memcpy_tradeoff (int x)
{
  this->cdr_memcpy_tradeoff_ = x;
}

ACE_INLINE ACE_CDR::ULong
TAO_ORB_Parameters::max_message_size (void) const
{
  return this->max_message_size_;
}

ACE_INLINE void
TAO_ORB_Parameters::max_message_size (ACE_CDR::ULong size)
{
  this->max_message_size_ = size;
}

ACE_INLINE int
TAO_ORB_Parameters::use_dotted_decimal_addresses (void) const
{
  return this->use_dotted_decimal_addresses_;
}

ACE_INLINE void
TAO_ORB_Parameters::use_dotted_decimal_addresses (int x)
{
  this->use_dotted_decimal_addresses_ = x;
}

ACE_INLINE int
TAO_ORB_Parameters::cache_incoming_by_dotted_decimal_address (void) const
{
  return this->cache_incoming_by_dotted_decimal_address_;
}

ACE_INLINE void
TAO_ORB_Parameters::cache_incoming_by_dotted_decimal_address (int x)
{
  this->cache_incoming_by_dotted_decimal_address_ = x;
}

ACE_INLINE int
TAO_ORB_Parameters::linger (void) const
{
  return this->linger_;
}

ACE_INLINE void
TAO_ORB_Parameters::linger (int x)
{
  this->linger_ = x;
}


ACE_INLINE time_t
TAO_ORB_Parameters::accept_error_delay (void) const
{
  return this->accept_error_delay_;
}

ACE_INLINE void
TAO_ORB_Parameters::accept_error_delay (time_t x)
{
  this->accept_error_delay_ = x;
}


ACE_INLINE void
TAO_ORB_Parameters::service_port (TAO::MCAST_SERVICEID service_id,
                                  CORBA::UShort port)
{
  this->service_port_[service_id] = port;
}

ACE_INLINE CORBA::UShort
TAO_ORB_Parameters::service_port (TAO::MCAST_SERVICEID service_id) const
{
  return this->service_port_[service_id];
}

ACE_INLINE void
TAO_ORB_Parameters::mcast_discovery_endpoint (const char *mde)
{
  this->mcast_discovery_endpoint_ = CORBA::string_dup (mde);
}

ACE_INLINE const char *
TAO_ORB_Parameters::mcast_discovery_endpoint (void) const
{
  return this->mcast_discovery_endpoint_.in ();
}

ACE_INLINE void
TAO_ORB_Parameters::default_init_ref (const char *default_init_ref)
{
  this->default_init_ref_ = default_init_ref;
}

ACE_INLINE char *
TAO_ORB_Parameters::default_init_ref (void) const
{
  return CORBA::string_dup (this->default_init_ref_.c_str ());
}

ACE_INLINE bool
TAO_ORB_Parameters::std_profile_components (void) const
{
  return this->std_profile_components_;
}

ACE_INLINE void
TAO_ORB_Parameters::std_profile_components (bool x)
{
  this->std_profile_components_ = x;
}

ACE_INLINE int
TAO_ORB_Parameters::nodelay (void) const
{
  return this->nodelay_;
}

ACE_INLINE void
TAO_ORB_Parameters::nodelay (int x)
{
  this->nodelay_ = x;
}

ACE_INLINE int
TAO_ORB_Parameters::sock_keepalive (void)
{
  return this->sock_keepalive_;
}

ACE_INLINE void
TAO_ORB_Parameters::sock_keepalive (int x)
{
  this->sock_keepalive_ = x;
}

ACE_INLINE int
TAO_ORB_Parameters::sock_dontroute (void)
{
  return this->sock_dontroute_;
}

ACE_INLINE void
TAO_ORB_Parameters::sock_dontroute (int x)
{
  this->sock_dontroute_ = x;
}

ACE_INLINE int
TAO_ORB_Parameters::ip_hoplimit (void)
{
  return this->ip_hoplimit_;
}

ACE_INLINE void
TAO_ORB_Parameters::ip_hoplimit (int x)
{
  this->ip_hoplimit_ = x;
}

ACE_INLINE bool
TAO_ORB_Parameters::ip_multicastloop (void)
{
  return this->ip_multicastloop_;
}

ACE_INLINE void
TAO_ORB_Parameters::ip_multicastloop (bool x)
{
  this->ip_multicastloop_ = x;
}

ACE_INLINE int
TAO_ORB_Parameters::ace_sched_policy (void) const
{
  return this->ace_sched_policy_;
}

ACE_INLINE void
TAO_ORB_Parameters::ace_sched_policy (int x)
{
  this->ace_sched_policy_ = x;
}

ACE_INLINE long
TAO_ORB_Parameters::sched_policy (void) const
{
  return this->sched_policy_;
}

ACE_INLINE void
TAO_ORB_Parameters::sched_policy (long x)
{
  this->sched_policy_ = x;
}

ACE_INLINE long
TAO_ORB_Parameters::scope_policy (void) const
{
  return this->scope_policy_;
}

ACE_INLINE void
TAO_ORB_Parameters::scope_policy (long x)
{
  this->scope_policy_ = x;
}

ACE_INLINE long
TAO_ORB_Parameters::thread_creation_flags (void) const
{
  return
    this->scope_policy () |
    this->sched_policy ();
}

ACE_INLINE int
TAO_ORB_Parameters::single_read_optimization (void) const
{
  return this->single_read_optimization_;
}

ACE_INLINE void
TAO_ORB_Parameters::single_read_optimization (int x)
{
  this->single_read_optimization_ = x;
}

ACE_INLINE bool
TAO_ORB_Parameters::use_parallel_connects (void) const
{
  return this->use_parallel_connects_;
}

ACE_INLINE void
TAO_ORB_Parameters::use_parallel_connects (bool x)
{
  this->use_parallel_connects_ = x;
}

ACE_INLINE unsigned long
TAO_ORB_Parameters::parallel_connect_delay (void) const
{
  return this->parallel_connect_delay_;
}

ACE_INLINE void
TAO_ORB_Parameters::parallel_connect_delay (unsigned long x)
{
  this->parallel_connect_delay_ = x;
}

ACE_INLINE int
TAO_ORB_Parameters::shared_profile (void) const
{
  return this->shared_profile_;
}

ACE_INLINE void
TAO_ORB_Parameters::shared_profile (int x)
{
  this->shared_profile_ = x;
}

ACE_INLINE bool
TAO_ORB_Parameters::disable_rt_collocation_resolver (void) const
{
  return this->disable_rt_collocation_resolver_;
}

ACE_INLINE void
TAO_ORB_Parameters::disable_rt_collocation_resolver (bool x)
{
  this->disable_rt_collocation_resolver_ = x;
}


ACE_INLINE bool
TAO_ORB_Parameters::negotiate_codesets (void) const
{
  return this->negotiate_codesets_;
}

ACE_INLINE void
TAO_ORB_Parameters::negotiate_codesets (bool x)
{
  this->negotiate_codesets_ = x;
}

ACE_INLINE bool
TAO_ORB_Parameters::ami_collication (void) const
{
  return this->ami_collication_;
}

ACE_INLINE void
TAO_ORB_Parameters::ami_collication (bool x)
{
  this->ami_collication_ = x;
}

ACE_INLINE void
TAO_ORB_Parameters::collocation_resolver_name (const char *s)
{
  this->collocation_resolver_name_ = s;
}

ACE_INLINE const char *
TAO_ORB_Parameters::collocation_resolver_name (void) const
{
  return this->collocation_resolver_name_.c_str ();
}

ACE_INLINE bool
TAO_ORB_Parameters::forward_invocation_on_object_not_exist (void) const
{
  return this->forward_invocation_on_object_not_exist_;
}

ACE_INLINE void
TAO_ORB_Parameters::forward_invocation_on_object_not_exist (bool x)
{
  this->forward_invocation_on_object_not_exist_ = x;
}

ACE_INLINE int
TAO_ORB_Parameters::forward_once_exception (void) const
{
  return this->forward_once_exception_;
}

ACE_INLINE void
TAO_ORB_Parameters::forward_once_exception (const int ef)
{
  this->forward_once_exception_ |= ef;
}


TAO_END_VERSIONED_NAMESPACE_DECL
