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

📄 packet.h

📁 模拟器提供了一个简单易用的平台
💻 H
字号:
/* * File: packet.h * Author: Suman Banerjee <suman@cs.umd.edu> * Date: July 31, 2001 * Terms: GPL * * myns simulator */#ifndef _PACKET_H_#define _PACKET_H_#define CONSTANT_LINK_DELAY 0.001 // All time info is in secsenum PacketType {  PACKET_NONE,  PACKET_ROUTING,  PACKET_APP};class Packet {public :  PacketType t;  int id; // of the packet (to trace the packet)  int src; // of the packet  int src_agent; // Equivalent to port number  int dst;  int dst_agent; // Equivalent to port number  int size;  double send_time;  int process_count; // How many nodes will process this packet  static int pkt_id_gen;  Packet (void);  virtual ~Packet (void);};#endif

⌨️ 快捷键说明

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