A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-phy-rx-trace-example.cc File Reference
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/double.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-address-helper.h"
#include "ns3/log.h"
#include "ns3/mobility-helper.h"
#include "ns3/mobility-model.h"
#include "ns3/neighbor-cache-helper.h"
#include "ns3/ssid.h"
#include "ns3/string.h"
#include "ns3/wifi-phy-rx-trace-helper.h"
#include "ns3/yans-wifi-channel.h"
#include "ns3/yans-wifi-helper.h"
+ Include dependency graph for wifi-phy-rx-trace-example.cc:

Go to the source code of this file.

Functions

static void GeneratePacket (Ptr< Socket > socket, uint32_t pktSize, uint32_t pktCount, Time pktInterval)
 Generate traffic.
 
void PopulateNeighborCache ()
 
void ReceiveObssPacket (Ptr< Socket > socket)
 
void ReceivePacket (Ptr< Socket > socket)
 Function called when a packet is received.
 

Function Documentation

◆ GeneratePacket()

static void GeneratePacket ( Ptr< Socket > socket,
uint32_t pktSize,
uint32_t pktCount,
Time pktInterval )
static

Generate traffic.

Parameters
socketThe sending socket.
pktSizeThe packet size.
pktCountThe packet count.
pktIntervalThe interval between two packets.

Definition at line 103 of file wifi-phy-rx-trace-example.cc.

References ns3::Create(), GeneratePacket(), NS_LOG_INFO, pktSize, and ns3::Simulator::Schedule().

Referenced by GeneratePacket().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PopulateNeighborCache()

void PopulateNeighborCache ( )

Definition at line 123 of file wifi-phy-rx-trace-example.cc.

References ns3::NeighborCacheHelper::PopulateNeighborCache().

+ Here is the call graph for this function:

◆ ReceiveObssPacket()

void ReceiveObssPacket ( Ptr< Socket > socket)

Definition at line 85 of file wifi-phy-rx-trace-example.cc.

References NS_LOG_INFO.

◆ ReceivePacket()

void ReceivePacket ( Ptr< Socket > socket)

Function called when a packet is received.

Parameters
socketThe receiving socket.

Definition at line 75 of file wifi-phy-rx-trace-example.cc.

References NS_LOG_INFO.