A Discrete-Event Network Simulator
API
wave-simple-80211p.cc File Reference
#include "ns3/vector.h"
#include "ns3/string.h"
#include "ns3/socket.h"
#include "ns3/double.h"
#include "ns3/config.h"
#include "ns3/log.h"
#include "ns3/command-line.h"
#include "ns3/mobility-model.h"
#include "ns3/yans-wifi-helper.h"
#include "ns3/position-allocator.h"
#include "ns3/mobility-helper.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-address-helper.h"
#include "ns3/ipv4-interface-container.h"
#include <iostream>
#include "ns3/ocb-wifi-mac.h"
#include "ns3/wifi-80211p-helper.h"
#include "ns3/wave-mac-helper.h"
+ Include dependency graph for wave-simple-80211p.cc:

Go to the source code of this file.

Functions

static void GenerateTraffic (Ptr< Socket > socket, uint32_t pktSize, uint32_t pktCount, Time pktInterval)
 Geerate traffic. More...
 
void ReceivePacket (Ptr< Socket > socket)
 Receive a packet. More...
 

Detailed Description

Usage

$ ./ns3 run "wave-simple-80211p [Program Options]"

Program Options

–phyMode
Wifi Phy mode [OfdmRate6MbpsBW10MHz]
–packetSize
size of application packet sent [1000]
–numPackets
number of packets generated [1]
–interval
interval (seconds) between packets [1]
–verbose
turn on all WifiNetDevice log components [false]

Definition in file wave-simple-80211p.cc.

Function Documentation

◆ GenerateTraffic()

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

Geerate traffic.

Parameters
socketTx socket
pktSizepacket size
pktCountnumber of packets
pktIntervalinterval between packet generation

Definition at line 96 of file wave-simple-80211p.cc.

References ns3::Socket::Close(), pktSize, ns3::Simulator::Schedule(), and ns3::Socket::Send().

+ Here is the call graph for this function:

◆ ReceivePacket()

void ReceivePacket ( Ptr< Socket socket)

Receive a packet.

Parameters
socketRx socket

Definition at line 81 of file wave-simple-80211p.cc.

References NS_LOG_UNCOND, and ns3::Socket::Recv().

+ Here is the call graph for this function: