rtproto.h

来自「柯老师网站上找到的」· C头文件 代码 · 共 34 行

H
34
字号
#ifndef __rtproto_h__#define __rtproto_h__#include <agent.h>#include <packet.h>#include <sys/types.h>class rtAgent : public Agent {public:        rtAgent(nsaddr_t index, packet_t pt) : Agent(pt), ipaddr_(index) { }	// ============================================================	// Routing API (used by IMEP layer)	virtual void rtNotifyLinkUP(nsaddr_t index) = 0;	virtual void rtNotifyLinkDN(nsaddr_t index) = 0;	virtual void rtNotifyLinkStatus(nsaddr_t index, u_int32_t status) = 0;	virtual void rtRoutePacket(Packet *p) = 0;	// ============================================================protected:	virtual inline int initialized() = 0;	nsaddr_t& ipaddr() { return ipaddr_; }private:	nsaddr_t	ipaddr_;	// IP address of this node};#endif /* __rtproto_h__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?