channel.h

来自「ns2.1b5版本中cbrp碼」· C头文件 代码 · 共 35 行

H
35
字号
#ifndef __channel_h__#define __channel_h__class Channel;#include <packet.h>#include <cmu/net-if.h>/* ======================================================================   Channel	This class is used to represent the physical media to which	network interfaces are attached.  As such, the send() function	simply schedules packet reception at the interfaces.  The recv()	function should never be called.   ====================================================================== */class Channel : public TclObject {public:	Channel(void);	virtual int command(int argc, const char*const* argv);	void recv(Packet* p, NetIf* txifp);private:	void send(Packet* p, NetIf* txifp);	void dump(void);	int index;	struct if_head	ifhead;};#endif __channel_h__

⌨️ 快捷键说明

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