A Discrete-Event Network Simulator
API
qkd_channel_test.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-helper.h"
#include "ns3/qkd-app-charging-helper.h"
#include "ns3/qkd-send.h"
#include "ns3/aodv-module.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 dependency graph for qkd_channel_test.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

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

Definition at line 77 of file qkd_channel_test.cc.

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

Referenced by Ratio().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 61 of file qkd_channel_test.cc.

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

Referenced by Ratio().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

uint32_t m_bytes_received = 0

Definition at line 55 of file qkd_channel_test.cc.

Referenced by Ratio(), and ReceivedPacket().

uint32_t m_bytes_sent = 0

Definition at line 56 of file qkd_channel_test.cc.

Referenced by SentPacket().

uint32_t m_bytes_total = 0

Definition at line 54 of file qkd_channel_test.cc.

Referenced by ReceivedPacket().

uint32_t m_packets_received = 0

Definition at line 57 of file qkd_channel_test.cc.

Referenced by Ratio(), and ReceivedPacket().