// EC_UDP_Admin.cpp,v 1.7 2005/11/10 06:47:24 ossama Exp

#include "orbsvcs/Event/EC_UDP_Admin.h"

ACE_RCSID (Event, 
           EC_UDP_Admin, 
           "EC_UDP_Admin.cpp,v 1.7 2005/11/10 06:47:24 ossama Exp")

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

TAO_EC_Simple_AddrServer::TAO_EC_Simple_AddrServer (CORBA::UShort port)
  : port_ (port)
{
}

TAO_EC_Simple_AddrServer::~TAO_EC_Simple_AddrServer (void)
{
}

void
TAO_EC_Simple_AddrServer::get_addr (const RtecEventComm::EventHeader& header,
                                    RtecUDPAdmin::UDP_Addr_out addr
                                    ACE_ENV_ARG_DECL_NOT_USED)
  ACE_THROW_SPEC ((CORBA::SystemException))
{
  addr.ipaddr = header.type;
  addr.port = this->port_;
}

TAO_END_VERSIONED_NAMESPACE_DECL
