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

📄 rt.h

📁 模拟器提供了一个简单易用的平台
💻 H
字号:
/* * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -