EC_UDP_Admin.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 /**
00004  *  @file   EC_UDP_Admin.h
00005  *
00006  *  EC_UDP_Admin.h,v 1.17 2006/03/15 07:52:22 jtc Exp
00007  *
00008  *  @author Carlos O'Ryan (coryan@cs.wustl.edu)
00009  *
00010  * Based on previous work by Tim Harrison (harrison@cs.wustl.edu) and
00011  * other members of the DOC group. More details can be found in:
00012  *
00013  * http://doc.ece.uci.edu/~coryan/EC/index.html
00014  */
00015 
00016 #ifndef TAO_EC_UDP_ADMIN_H
00017 #define TAO_EC_UDP_ADMIN_H
00018 #include /**/ "ace/pre.h"
00019 
00020 #include "orbsvcs/RtecUDPAdminS.h"
00021 #include /**/ "orbsvcs/Event/event_serv_export.h"
00022 
00023 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00024 
00025 /**
00026  * @class TAO_EC_Simple_AddrServer
00027  *
00028  * @brief TAO Real-time Event Service; a simple UDP address server.
00029  *
00030  * The EC is able to use multiple multicast groups to transmit its
00031  * data, the is given control over the mapping between the Event
00032  * (type,source) pair and the (ipaddr,port) pair using a
00033  * AddrServer.
00034  * This class implements a very simple server that simply maps the
00035  * type component to the ipaddr and uses a fixed port,
00036  * provided at initialization time.
00037  */
00038 class TAO_RTEvent_Serv_Export TAO_EC_Simple_AddrServer : public POA_RtecUDPAdmin::AddrServer
00039 {
00040 public:
00041   /// Constructor
00042   TAO_EC_Simple_AddrServer (CORBA::UShort port);
00043 
00044   /// Destructor
00045   virtual ~TAO_EC_Simple_AddrServer (void);
00046 
00047   // = The RtecUDPAdmin::AddrServer methods
00048   virtual void get_addr (const RtecEventComm::EventHeader& header,
00049                          RtecUDPAdmin::UDP_Addr_out addr
00050                          ACE_ENV_ARG_DECL)
00051       ACE_THROW_SPEC ((CORBA::SystemException));
00052 
00053 private:
00054   CORBA::UShort port_;
00055 };
00056 
00057 TAO_END_VERSIONED_NAMESPACE_DECL
00058 
00059 #include /**/ "ace/post.h"
00060 #endif /* TAO_EC_UDP_ADMIN_H */

Generated on Thu Nov 9 13:11:10 2006 for TAO_RTEvent by doxygen 1.3.6