packet.h
来自「模拟器提供了一个简单易用的平台」· C头文件 代码 · 共 44 行
H
44 行
/* * 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 + =
减小字号Ctrl + -
显示快捷键?