tora_neighbor.h
来自「ns2.1b5版本中cbrp碼」· C头文件 代码 · 共 42 行
H
42 行
/* -*- 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 + =
减小字号Ctrl + -
显示快捷键?