diff options
Diffstat (limited to 'TAO/examples/PluggableUDP/DIOP/DIOP_Acceptor.i')
-rw-r--r-- | TAO/examples/PluggableUDP/DIOP/DIOP_Acceptor.i | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/TAO/examples/PluggableUDP/DIOP/DIOP_Acceptor.i b/TAO/examples/PluggableUDP/DIOP/DIOP_Acceptor.i new file mode 100644 index 00000000000..9aaf71a3d41 --- /dev/null +++ b/TAO/examples/PluggableUDP/DIOP/DIOP_Acceptor.i @@ -0,0 +1,23 @@ +// -*- C++ -*- +// $Id$ + +ACE_INLINE const ACE_INET_Addr& +TAO_DIOP_Acceptor::address (void) const +{ + ACE_ASSERT (this->addrs_ != 0); + + // @@ This is busted. + // The Implementation Repository will have to start supporting + // IORs with multiple profiles. For now, we just return the + // first addr. + // -Ossama + return this->addrs_[0]; +} + +ACE_INLINE const ACE_INET_Addr * +TAO_DIOP_Acceptor::endpoints (void) +{ + ACE_ASSERT (this->addrs_ != 0); + + return this->addrs_; +} |