00001 // -*- C++ -*- 00002 // 00003 // $Id: DIOP_Acceptor.inl 78851 2007-07-12 12:06:21Z vridosh $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE const ACE_INET_Addr& 00008 TAO_DIOP_Acceptor::address (void) const 00009 { 00010 ACE_ASSERT (this->addrs_ != 0); 00011 00012 // @@ This is busted. 00013 // The Implementation Repository will have to start supporting 00014 // IORs with multiple profiles. For now, we just return the 00015 // first addr. 00016 // -Ossama 00017 return this->addrs_[0]; 00018 } 00019 00020 ACE_INLINE const ACE_INET_Addr * 00021 TAO_DIOP_Acceptor::endpoints (void) 00022 { 00023 ACE_ASSERT (this->addrs_ != 0); 00024 00025 return this->addrs_; 00026 } 00027 00028 ACE_INLINE const ACE_INET_Addr& 00029 TAO_DIOP_Acceptor::default_address (void) const 00030 { 00031 return this->default_address_; 00032 } 00033 00034 ACE_INLINE void 00035 TAO_DIOP_Acceptor::set_default_address (const ACE_INET_Addr& addr) 00036 { 00037 this->default_address_.set (addr); 00038 } 00039 00040 TAO_END_VERSIONED_NAMESPACE_DECL