A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-multirate.cc File Reference
#include "ns3/boolean.h"
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/double.h"
#include "ns3/flow-monitor-helper.h"
#include "ns3/gnuplot.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-address-helper.h"
#include "ns3/ipv4-list-routing-helper.h"
#include "ns3/ipv4-static-routing-helper.h"
#include "ns3/log.h"
#include "ns3/mobility-helper.h"
#include "ns3/mobility-model.h"
#include "ns3/olsr-helper.h"
#include "ns3/on-off-helper.h"
#include "ns3/rectangle.h"
#include "ns3/string.h"
#include "ns3/uinteger.h"
#include "ns3/yans-wifi-channel.h"
#include "ns3/yans-wifi-helper.h"
+ Include dependency graph for wifi-multirate.cc:

Go to the source code of this file.

Classes

class  Experiment
 WiFi adhoc experiment class. More...
 

Functions

static std::string PrintPosition (Ptr< Node > client, Ptr< Node > server)
 Print the position of two nodes.
 

Detailed Description

Usage

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

Program Options

--packetSize
packet size [2000]
--totalTime
simulation time [0.3]
--samplingPeriod
sampling period [0.1]
--rtsThreshold
rts threshold [2200]
--rateManager
type of rate [ns3::MinstrelWifiManager]
--outputFileName
output filename [minstrel]
--enableRouting
enable Routing [false]
--enableMobility
enable Mobility [false]
--scenario
scenario [4]

Definition in file wifi-multirate.cc.

Function Documentation

◆ PrintPosition()

static std::string PrintPosition ( Ptr< Node client,
Ptr< Node server 
)
inlinestatic

Print the position of two nodes.

Parameters
clientClient node.
serverServer node.
Returns
a string with the nodes data and positions

Definition at line 444 of file wifi-multirate.cc.

References ns3::Ipv4InterfaceAddress::GetAddress(), and ns3::Ipv4InterfaceAddress::GetLocal().

Referenced by Experiment::ApplicationSetup().

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