A Discrete-Event Network Simulator
API
codel-vs-pfifo-basic-test.cc File Reference
#include "ns3/applications-module.h"
#include "ns3/core-module.h"
#include "ns3/enum.h"
#include "ns3/error-model.h"
#include "ns3/event-id.h"
#include "ns3/internet-module.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/tcp-header.h"
#include "ns3/traffic-control-module.h"
#include "ns3/udp-header.h"
#include <fstream>
#include <iostream>
#include <string>
+ Include dependency graph for codel-vs-pfifo-basic-test.cc:

Go to the source code of this file.

Functions

static void CwndTracer (Ptr< OutputStreamWrapper > stream, uint32_t oldval, uint32_t newval)
 Function called when Congestion Window is changed. More...
 
static void TraceCwnd (std::string cwndTrFileName)
 Function to enable the Congestion window tracing. More...
 

Function Documentation

◆ CwndTracer()

static void CwndTracer ( Ptr< OutputStreamWrapper stream,
uint32_t  oldval,
uint32_t  newval 
)
static

Function called when Congestion Window is changed.

Parameters
streamOutput stream.
oldvalOld value.
newvalNew value.

Definition at line 65 of file codel-vs-pfifo-basic-test.cc.

References ns3::OutputStreamWrapper::GetStream().

Referenced by TraceCwnd().

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

◆ TraceCwnd()

static void TraceCwnd ( std::string  cwndTrFileName)
static

Function to enable the Congestion window tracing.

Note that you can not hook to the trace before the socket is created.

Parameters
cwndTrFileNameName of the output file.

Definition at line 78 of file codel-vs-pfifo-basic-test.cc.

References ns3::Config::ConnectWithoutContext(), ns3::AsciiTraceHelper::CreateFileStream(), CwndTracer(), ns3::MakeBoundCallback(), and NS_LOG_DEBUG.

+ Here is the call graph for this function: