A Discrete-Event Network Simulator
API
wifi-tcp.cc File Reference
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-address-helper.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/log.h"
#include "ns3/mobility-helper.h"
#include "ns3/mobility-model.h"
#include "ns3/on-off-helper.h"
#include "ns3/packet-sink-helper.h"
#include "ns3/packet-sink.h"
#include "ns3/ssid.h"
#include "ns3/string.h"
#include "ns3/tcp-westwood-plus.h"
#include "ns3/yans-wifi-channel.h"
#include "ns3/yans-wifi-helper.h"
+ Include dependency graph for wifi-tcp.cc:

Go to the source code of this file.

Functions

void CalculateThroughput ()
 Calculate the throughput. More...
 

Variables

uint64_t lastTotalRx = 0
 The value of the last total received bytes. More...
 
Ptr< PacketSinksink
 Pointer to the packet sink application. More...
 

Function Documentation

◆ CalculateThroughput()

void CalculateThroughput ( )

Calculate the throughput.

Definition at line 62 of file wifi-tcp.cc.

References ns3::Time::GetSeconds(), ns3::PacketSink::GetTotalRx(), lastTotalRx, ns3::MilliSeconds(), ns3::Simulator::Now(), ns3::Simulator::Schedule(), and sink.

+ Here is the call graph for this function:

Variable Documentation

◆ lastTotalRx

uint64_t lastTotalRx = 0

The value of the last total received bytes.

Definition at line 56 of file wifi-tcp.cc.

Referenced by CalculateThroughput().

◆ sink