美文网首页
NS3-Wifi-Packet send&receive

NS3-Wifi-Packet send&receive

作者: 53324d792ce6 | 来源:发表于2016-03-27 22:37 被阅读67次

    追了半天,感觉最好还是在执行程序时追不错

    举例P2Pchannel发包函数中包含以下:
    Simulator::ScheduleWithContext (m_link[wire].m_dst->GetNode ()->GetId (),txTime + m_delay, &PointToPointNetDevice::Receive,m_link[wire].m_dst, p);
    means 接下来目标节点运行receive函数
    

    追踪底层代码方法,找到感兴趣的函数
    运行一个例子

    export 'NS_LOG=*=level_info|prefix_func|prefix_time'
    

    然后把输出导出到文件中 在文件中找到你感兴趣的函数查看它

    Wifi通信顶层设计

    NS3-Wifi通信顶层设计.png

    相关文章

      网友评论

          本文标题:NS3-Wifi-Packet send&receive

          本文链接:https://www.haomeiwen.com/subject/jjkjlttx.html