📄 addrserver.h
字号:
// AddrServer.h,v 1.2 2003/07/21 23:51:33 dhinton Exp
// Reused from: $TAO_ROOT/orbsvcs/examples/RtEC/MCast
#ifndef ADDRSERVER_H
#define ADDRSERVER_H
#include /**/ "ace/pre.h"
#include "orbsvcs/RtecUDPAdminS.h"
class AddrServer : public POA_RtecUDPAdmin::AddrServer
{
// = TITLE
// A simple AddrServer
//
// = DESCRIPTION
// The EC is able to use multiple multicast groups to transmit its
// data, the is given control over the mapping between the Event
// (type,source) pair and the (ipaddr,port) pair using a
// AddrServer.
// This class implements a very simple server that simply maps the
// <type> component to the <ipaddr> and uses a fixed <port>,
// provided at initialization time.
//
public:
AddrServer (const RtecUDPAdmin::UDP_Addr& addr);
// Constructor
// = The RtecUDPAdmin::AddrServer methods
virtual void get_addr (const RtecEventComm::EventHeader& header,
RtecUDPAdmin::UDP_Addr_out addr
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
private:
RtecUDPAdmin::UDP_Addr addr_;
// The address
};
#include /**/ "ace/post.h"
#endif /* ADDRSERVER_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -