A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-example-sim.cc File Reference
#include "wifi-example-apps.h"
#include "ns3/core-module.h"
#include "ns3/internet-module.h"
#include "ns3/mobility-module.h"
#include "ns3/network-module.h"
#include "ns3/stats-module.h"
#include "ns3/wifi-module.h"
#include <ctime>
#include <sstream>
+ Include dependency graph for wifi-example-sim.cc:

Go to the source code of this file.

Functions

void TxCallback (Ptr< CounterCalculator< uint32_t > > datac, std::string path, Ptr< const Packet > packet)
 Function called when a packet is transmitted.
 

Detailed Description

Usage

$ ./ns3 run "wifi-example-sim [Program Options]"

Program Options

--distance
Distance apart to place nodes (in meters). [50]
--format
Format to use for data output. [omnet]
--experiment
Identifier for experiment. [wifi-distance-test]
--strategy
Identifier for strategy. [wifi-default]
--run
Identifier for run. [run-1714361065]

Definition in file wifi-example-sim.cc.

Function Documentation

◆ TxCallback()

void TxCallback ( Ptr< CounterCalculator< uint32_t > >  datac,
std::string  path,
Ptr< const Packet packet 
)

Function called when a packet is transmitted.

Parameters
datacThe counter of the number of transmitted packets.
pathThe callback context.
packetThe transmitted packet.

Definition at line 56 of file wifi-example-sim.cc.

References NS_LOG_INFO.