W3CHINA Blog首页    管理页面    写新日志    退出

The Neurotic Fishbowl

[Cammy][NS]How to access a node in the class of the queue?
ns2 发表于 2005/2/27 22:03:15

How to access a node in the class of the queue(e.g. PriQueue). Actually, in NS, a queue associates with a link. Then how can I know which link the queue associates with when my code runs into the PriQueue class. I use a stupic way to do it. I look into the packets in the queue. I can know the current node address of that packet so that I got to know which node the queue belongs to. Who knows another smart way to do it?

阅读全文(1342) | 回复(0) | 编辑 | 精华

 


回复:[NS]How to access a node in the class of the queue?
ns2发表评论于2005/2/27 23:50:59

You can access node in link layer (class LL).  by this->mac_->netif_->node() . There is a queue attached to each LL. Add a pointer into class queue and let it point to the LL instance. Then you will get access to node in class queue. Zhang Jun

个人主页 | 引用回复 | 主人回复 | 返回 | 编辑 | 删除

 


» 1 »

发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)

 
 



The Neurotic Fishbowl

.: 公告

发表文章注意事项

大家在发布日志的时候请在"我的专题(分类)"中选择自己的名字,这样既可以区别发信人,又方便检索。另外,大家在回复的时候请使用游客身份,并使用自己的姓名作为昵称,便于讨论联系。谢谢合作!让我们大家携手共建我们的NS2家园。


Bloginess

«October 2026»
日一二三四五六
123
45678910
11121314151617
18192021222324
25262728293031

.: 我的分类(专题)

首页(6)
Lin Xiaoyang(0)
Chen Shan(0)
Xia Qiuyan(1)
Cammy(3)
Simon(0)
John(0)
Zhang Jun(1)
Chen Shi(0)
Chang Xiaolin(0)


In the Bowl

.: 最新日志

[Zhang Jun][ns2][exp
newbie
[NS]How to access a
[NS] ns_ node -confi
[NS] wireless bandwi
welcom


.: 最新回复

回复:[NS]How to access
回复:[NS] wireless ban
回复:[NS] ns_ node -co
回复:[NS] wireless ban
回复:[NS] ns_ node -co
回复:[NS] wireless ban


The Fishkeeper
blog名称:
日志总数:6
评论数量:6
留言数量:2
访问次数:46005
建立时间:2005年2月27日



Text Me

.: 留言板

签写新留言

help
testing


Other Fish in the Sea

.: 链接





站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.109 second(s), page refreshed 144847637 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号