上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 207 下一页

2013年5月6日

在ns2中实现一种新的报文头部(转帖)

摘要: 在ns2中实现一种新的报文头部在ns2中实现一种新的报文头部需要以下几步:1 用一个结构体定义这个协议,注意必须提供另外的几个方法,例如下面这个协议结构体:struct hdr_brcast {int hop;static int offset_;inline static int& offset() { return offset_; }inline static hdr_brcast* access(const Packet* p) {return (hdr_brcast*) p->access(offset_);}};其中 变量 hop是 这个协议的具体内容 ,而另外的变量 阅读全文

posted @ 2013-05-06 15:40 原来... 阅读(439) 评论(0) 推荐(0) 编辑

上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 207 下一页

导航