rt.h

来自「模拟器提供了一个简单易用的平台」· C头文件 代码 · 共 40 行

H
40
字号
/* * File: rt.h * Author: Suman Banerjee <suman@cs.umd.edu> * Date: July 31, 2001 * Terms: GPL * * myns simulator */#ifndef _RT_H_#define _RT_H_/* For node i, the next hop is next_hop_id[i] *//* If valid is false, then there is no known next hop path */enum RoutingType {  ROUTE_ORACLE,  ROUTE_ORACLE_TS,  ROUTE_NULL};class Node;class RoutingTable {public:  Node *n;  RoutingType t;  public:  RoutingTable (void) {t = ROUTE_NULL;};  RoutingTable (RoutingType T, Node *N) {t = T; n = N;};  virtual int get_next_hop_id (int dst) = 0;  virtual double get_path_cost (int dst) = 0;};#endif

⌨️ 快捷键说明

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