A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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)
 
int main (int argc, char *argv[])
 
 NS_LOG_COMPONENT_DEFINE ("WifiSimpleOcb")
 This example shows basic construction of an 802.11p node. More...
 
void ReceivePacket (Ptr< Socket > socket)
 

Function Documentation

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

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

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

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

NS_LOG_COMPONENT_DEFINE ( "WifiSimpleOcb"  )

This example shows basic construction of an 802.11p node.

Two nodes are constructed with 802.11p devices, and by default, one node sends a single packet to another node (the number of packets and interval between them can be configured by command-line arguments). The example shows typical usage of the helper classes for this mode of WiFi (where "OCB" refers to "Outside the Context of a BSS")."

void ReceivePacket ( Ptr< Socket socket)

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

References NS_LOG_UNCOND.

Referenced by main().

+ Here is the caller graph for this function: