#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"
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... | |
$ ./ns3 run "wave-simple-80211p [Program Options]"
–phyMode
–packetSize
–numPackets
–interval
–verbose
Definition in file wave-simple-80211p.cc.
|
static |
Geerate traffic.
socket | Tx socket |
pktSize | packet size |
pktCount | number of packets |
pktInterval | interval 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().
Receive a packet.
socket | Rx socket |
Definition at line 81 of file wave-simple-80211p.cc.
References NS_LOG_UNCOND, and ns3::Socket::Recv().