⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tora_neighbor.h

📁 CBRP协议(移动adhoc中基于分簇的路由协议)ns2下的源码
💻 H
字号:
/* -*- c++ -*-   tora_neighbor.h   $Id: tora_neighbor.h,v 1.2 1998/11/19 06:18:31 dmaltz Exp $     */#ifndef __tora_neighbor_h__#define __tora_neighbor_h__enum LinkStatus {	LINK_UP = 0x0001,	// upstream	LINK_DN = 0x0002,	// downstream	LINK_UN = 0x0004,	// undirected};class TORANeighbor {	friend class TORADest;	friend class toraAgent;public:	TORANeighbor(nsaddr_t id, Agent *a); 	void	update_link_status(Height *h);	void	dump(void);private:	LIST_ENTRY(TORANeighbor) link;	nsaddr_t	index;	/*	 *  height:   The height metric of this neighbor.	 *  lnk_stat: The assigned status of the link to this neighbor.	 *  time_act: Time the link to this neighbor became active.	 */	Height		height;	LinkStatus	lnk_stat;	double		time_act;        toraAgent     *agent;};#endif /* __tora_neighbor_h__ */

⌨️ 快捷键说明

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