A Discrete-Event Network Simulator
QKDNetSim v2.0 (NS-3 v3.41) @ (+)
API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
seventh.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 "ns3/stats-module.h"
#include <fstream>
+ Include dependency graph for seventh.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. More...
 
static void RxDrop (Ptr< PcapFileWrapper > file, Ptr< const Packet > p)
 Rx drop callback. More...
 

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 77 of file seventh.cc.

References ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), 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 91 of file seventh.cc.

References create-module::file, ns3::Simulator::Now(), and NS_LOG_UNCOND.

+ Here is the call graph for this function: