A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
examples_secoqc.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-004.h"
#include "ns3/network-module.h"
#include "ns3/internet-apps-module.h"
#include "ns3/netanim-module.h"
+ Include dependency graph for examples_secoqc.cc:

Go to the source code of this file.

Functions

void KeyGenerated (std::string context, const std::string &appId, const std::string &keyId, const uint32_t &amountInBits)
 
void KeyServed (std::string context, const std::string &appId, const std::string &keyId, const uint32_t &amountInBits)
 
void MissedSendPacketCall (std::string context, const std::string &appId, Ptr< const Packet > p)
 
void Ratio ()
 
void ReceivedPacket (std::string context, const std::string &appId, Ptr< const Packet > p)
 
void ReceivedPacketFromKMS (std::string context, const std::string &appId, Ptr< const Packet > p)
 
void ReceivedPacketSig (std::string context, const std::string &appId, Ptr< const Packet > p)
 
void SentPacket (std::string context, const std::string &appId, Ptr< const Packet > p)
 
void SentPacketSig (std::string context, const std::string &appId, Ptr< const Packet > p)
 
void SentPacketToKMS (std::string context, const std::string &appId, Ptr< const Packet > p)
 

Variables

std::map< std::string, std::pair< uint32_t, uint32_t > > m_dataAppReveived
 
std::map< std::string, std::pair< uint32_t, uint32_t > > m_dataAppSent
 
std::map< std::string, std::pair< uint32_t, uint32_t > > m_dataKmReceived
 
std::map< std::string, std::pair< uint32_t, uint32_t > > m_dataKmSent
 
std::map< std::string, std::pair< uint32_t, uint32_t > > m_dataSigReceived
 
std::map< std::string, std::pair< uint32_t, uint32_t > > m_dataSigSent
 
std::map< std::string, std::map< std::string, uint32_t > > m_generatedKeys
 
std::map< std::string, uint32_tm_missedSendPacketCalls
 
std::map< std::string, std::map< std::string, uint32_t > > m_servedKeys
 
uint32_t showKeyAdded = 0
 
uint32_t showKeyServed = 0
 

Function Documentation

◆ KeyGenerated()

void KeyGenerated ( std::string  context,
const std::string &  appId,
const std::string &  keyId,
const uint32_t amountInBits 
)

Definition at line 48 of file examples_secoqc.cc.

References ns3::Create(), and m_generatedKeys.

+ Here is the call graph for this function:

◆ KeyServed()

void KeyServed ( std::string  context,
const std::string &  appId,
const std::string &  keyId,
const uint32_t amountInBits 
)

Definition at line 54 of file examples_secoqc.cc.

References ns3::Create(), and m_servedKeys.

+ Here is the call graph for this function:

◆ MissedSendPacketCall()

void MissedSendPacketCall ( std::string  context,
const std::string &  appId,
Ptr< const Packet p 
)

Definition at line 71 of file examples_secoqc.cc.

References ns3::Create(), and m_missedSendPacketCalls.

+ Here is the call graph for this function:

◆ Ratio()

void Ratio ( )

◆ ReceivedPacket()

void ReceivedPacket ( std::string  context,
const std::string &  appId,
Ptr< const Packet p 
)

Definition at line 81 of file examples_secoqc.cc.

References ns3::Create(), and m_dataAppReveived.

+ Here is the call graph for this function:

◆ ReceivedPacketFromKMS()

void ReceivedPacketFromKMS ( std::string  context,
const std::string &  appId,
Ptr< const Packet p 
)

Definition at line 129 of file examples_secoqc.cc.

References ns3::Create(), and m_dataKmReceived.

+ Here is the call graph for this function:

◆ ReceivedPacketSig()

void ReceivedPacketSig ( std::string  context,
const std::string &  appId,
Ptr< const Packet p 
)

Definition at line 105 of file examples_secoqc.cc.

References ns3::Create(), and m_dataSigReceived.

+ Here is the call graph for this function:

◆ SentPacket()

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

Definition at line 60 of file examples_secoqc.cc.

References ns3::Create(), and m_dataAppSent.

+ Here is the call graph for this function:

◆ SentPacketSig()

void SentPacketSig ( std::string  context,
const std::string &  appId,
Ptr< const Packet p 
)

Definition at line 93 of file examples_secoqc.cc.

References ns3::Create(), and m_dataSigSent.

+ Here is the call graph for this function:

◆ SentPacketToKMS()

void SentPacketToKMS ( std::string  context,
const std::string &  appId,
Ptr< const Packet p 
)

Definition at line 117 of file examples_secoqc.cc.

References ns3::Create(), and m_dataKmSent.

+ Here is the call graph for this function:

Variable Documentation

◆ m_dataAppReveived

std::map<std::string, std::pair<uint32_t, uint32_t> > m_dataAppReveived

Definition at line 40 of file examples_secoqc.cc.

Referenced by Ratio(), and ReceivedPacket().

◆ m_dataAppSent

std::map<std::string, std::pair<uint32_t, uint32_t> > m_dataAppSent

Definition at line 39 of file examples_secoqc.cc.

Referenced by Ratio(), and SentPacket().

◆ m_dataKmReceived

std::map<std::string, std::pair<uint32_t, uint32_t> > m_dataKmReceived

Definition at line 44 of file examples_secoqc.cc.

Referenced by Ratio(), and ReceivedPacketFromKMS().

◆ m_dataKmSent

std::map<std::string, std::pair<uint32_t, uint32_t> > m_dataKmSent

Definition at line 43 of file examples_secoqc.cc.

Referenced by Ratio(), and SentPacketToKMS().

◆ m_dataSigReceived

std::map<std::string, std::pair<uint32_t, uint32_t> > m_dataSigReceived

Definition at line 42 of file examples_secoqc.cc.

Referenced by Ratio(), and ReceivedPacketSig().

◆ m_dataSigSent

std::map<std::string, std::pair<uint32_t, uint32_t> > m_dataSigSent

Definition at line 41 of file examples_secoqc.cc.

Referenced by Ratio(), and SentPacketSig().

◆ m_generatedKeys

std::map<std::string, std::map<std::string, uint32_t> > m_generatedKeys

Definition at line 36 of file examples_secoqc.cc.

Referenced by KeyGenerated(), and Ratio().

◆ m_missedSendPacketCalls

std::map<std::string, uint32_t> m_missedSendPacketCalls

Definition at line 45 of file examples_secoqc.cc.

Referenced by MissedSendPacketCall(), and Ratio().

◆ m_servedKeys

std::map<std::string, std::map<std::string, uint32_t> > m_servedKeys

Definition at line 37 of file examples_secoqc.cc.

Referenced by KeyServed(), and Ratio().

◆ showKeyAdded

uint32_t showKeyAdded = 0

Definition at line 32 of file examples_secoqc.cc.

◆ showKeyServed

uint32_t showKeyServed = 0

Definition at line 33 of file examples_secoqc.cc.