A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
sixth.cc File Reference
#include "tutorial-app.h"
#include "ns3/applications-module.h"
#include "ns3/core-module.h"
#include "ns3/internet-module.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include <fstream>
+ Include dependency graph for sixth.cc:

Go to the source code of this file.

Functions

static void CwndChange (Ptr< OutputStreamWrapper > stream, uint32_t oldCwnd, uint32_t newCwnd)
 Congestion window change callback.
 
static void RxDrop (Ptr< PcapFileWrapper > file, Ptr< const Packet > p)
 Rx drop callback.
 

Detailed Description

Usage

$ ./ns3 run "sixth"

Definition in file sixth.cc.

Function Documentation

◆ CwndChange()

static void CwndChange ( Ptr< OutputStreamWrapper stream,
uint32_t  oldCwnd,
uint32_t  newCwnd 
)
static

Congestion window change callback.

Parameters
streamThe output stream file.
oldCwndOld congestion window.
newCwndNew congestion window.

Definition at line 73 of file sixth.cc.

References ns3::Time::GetSeconds(), ns3::Simulator::Now(), and NS_LOG_UNCOND.

+ Here is the call graph for this function:

◆ RxDrop()

static void RxDrop ( Ptr< PcapFileWrapper file,
Ptr< const Packet p 
)
static

Rx drop callback.

Parameters
fileThe output PCAP file.
pThe dropped packet.

Definition at line 87 of file sixth.cc.

References ns3::Simulator::Now(), and NS_LOG_UNCOND.

+ Here is the call graph for this function: