A Discrete-Event Network Simulator
API
qkd_etsi_014.cc File Reference
#include <fstream>
#include "ns3/core-module.h"
#include "ns3/applications-module.h"
#include "ns3/internet-module.h"
#include "ns3/flow-monitor-module.h"
#include "ns3/mobility-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/gnuplot.h"
#include "ns3/qkd-link-helper.h"
#include "ns3/qkd-app-helper.h"
#include "ns3/qkd-app.h"
#include "ns3/olsr-module.h"
#include "ns3/dsdv-module.h"
#include "ns3/network-module.h"
#include "ns3/fd-net-device-module.h"
#include "ns3/internet-apps-module.h"
#include "ns3/netanim-module.h"
+ Include dependency graph for qkd_etsi_014.cc:

Go to the source code of this file.

Functions

void Ratio (uint32_t m_bytes_sent, uint32_t m_packets_sent)
 
void ReceivedPacket (std::string context, Ptr< const Packet > p, const Address &addr)
 
void SentPacket (std::string context, Ptr< const Packet > p)
 

Variables

uint32_t m_bytes_received = 0
 
uint32_t m_bytes_sent = 0
 
uint32_t m_bytes_total = 0
 
uint32_t m_packets_received = 0
 
double m_time = 0
 

Function Documentation

◆ Ratio()

void Ratio ( uint32_t  m_bytes_sent,
uint32_t  m_packets_sent 
)

Definition at line 80 of file qkd_etsi_014.cc.

References m_bytes_received, m_bytes_sent, and m_packets_received.

◆ ReceivedPacket()

void ReceivedPacket ( std::string  context,
Ptr< const Packet p,
const Address addr 
)

Definition at line 71 of file qkd_etsi_014.cc.

References ns3::Packet::GetSize(), m_bytes_received, m_bytes_total, and m_packets_received.

+ Here is the call graph for this function:

◆ SentPacket()

void SentPacket ( std::string  context,
Ptr< const Packet p 
)

Definition at line 65 of file qkd_etsi_014.cc.

References ns3::Packet::GetSize(), and m_bytes_sent.

+ Here is the call graph for this function:

Variable Documentation

◆ m_bytes_received

uint32_t m_bytes_received = 0

Definition at line 59 of file qkd_etsi_014.cc.

Referenced by Ratio(), and ReceivedPacket().

◆ m_bytes_sent

uint32_t m_bytes_sent = 0

Definition at line 60 of file qkd_etsi_014.cc.

Referenced by Ratio(), and SentPacket().

◆ m_bytes_total

uint32_t m_bytes_total = 0

Definition at line 58 of file qkd_etsi_014.cc.

Referenced by ReceivedPacket().

◆ m_packets_received

uint32_t m_packets_received = 0

Definition at line 61 of file qkd_etsi_014.cc.

Referenced by Ratio(), and ReceivedPacket().

◆ m_time

double m_time = 0

Definition at line 62 of file qkd_etsi_014.cc.

Referenced by SampleEmitter::GetTime(), and SampleEmitter::Reschedule().