#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/double.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/log.h"
#include "ns3/mobility-helper.h"
#include "ns3/mobility-model.h"
#include "ns3/ssid.h"
#include "ns3/string.h"
#include "ns3/yans-wifi-channel.h"
#include "ns3/yans-wifi-helper.h"
Go to the source code of this file.
Functions | |
static void | GenerateTraffic (Ptr< Socket > socket, uint32_t pktSize, uint32_t pktCount, Time pktInterval) |
Generate traffic. | |
static std::string | PrintReceivedPacket (Ptr< Socket > socket) |
Print a packer that has been received. | |
static void | ReceivePacket (Ptr< Socket > socket) |
Function called when a packet is received. | |
|
static |
Generate traffic.
socket | The seding socket. |
pktSize | The packet size. |
pktCount | The packet counter. |
pktInterval | The interval between two packets. |
Definition at line 131 of file wifi-simple-interference.cc.
References ns3::Create(), GenerateTraffic(), pktSize, and ns3::Simulator::Schedule().
Referenced by GenerateTraffic().
Print a packer that has been received.
socket | The receiving socket. |
Definition at line 94 of file wifi-simple-interference.cc.
References ns3::InetSocketAddress::ConvertFrom(), ns3::InetSocketAddress::GetIpv4(), and ns3::InetSocketAddress::GetPort().
Referenced by ReceivePacket().
Function called when a packet is received.
socket | The receiving socket. |
Definition at line 117 of file wifi-simple-interference.cc.
References NS_LOG_UNCOND, and PrintReceivedPacket().