#include <q2ns-swap-app.h>
|
| ns3::TracedCallback< uint64_t, ns3::Time > | m_traceRoundStart |
| |
| ns3::TracedCallback< uint64_t, ns3::Time, uint8_t, uint8_t > | m_traceBSMDone |
| |
| ns3::TracedCallback< uint64_t, ns3::Time, uint8_t, uint8_t > | m_traceCtrlSent |
| |
| ns3::TracedCallback< uint64_t, ns3::Time, uint8_t, uint8_t > | m_traceFrameResolved |
| |
| ns3::TracedCallback< uint64_t, ns3::Time > | m_traceCorrectionApplied |
| |
| ns3::TracedCallback< uint64_t, ns3::Time, double > | m_traceVerifyFidelity |
| |
|
| NetController * | m_nc {nullptr} |
| |
| std::unordered_map< uint64_t, SessionState > | m_sessions |
| |
| std::unordered_map< uint16_t, ns3::Ptr< ns3::PacketSink > > | m_sinksByPort |
| |
| uint32_t | m_payloadBytes {16} |
| |
| bool | m_useIpv6 {false} |
| |
| ns3::Ipv4Address | m_peerV4 |
| |
| ns3::Ipv6Address | m_peerV6 |
| |
| std::unordered_map< uint16_t, ns3::Ptr< ns3::Socket > > | m_udp4 |
| |
| std::unordered_map< uint16_t, ns3::Ptr< ns3::Socket > > | m_udp6 |
| |
| std::unordered_map< TcpKey, ns3::Ptr< ns3::Socket >, TcpKeyHash > | m_tcp |
| |
| std::unordered_map< uintptr_t, ns3::Ptr< ns3::Packet > > | m_tcpPendingOnce |
| |
| std::unordered_map< uintptr_t, ns3::Ptr< ns3::Packet > > | m_tcpPending |
| |
| std::unordered_map< TcpKey, ns3::Ptr< ns3::Socket >, TcpKeyHash > | m_udp6_conn |
| |
Definition at line 40 of file q2ns-swap-app.h.
◆ Role
◆ SwapApp()
| q2ns::SwapApp::SwapApp |
( |
| ) |
|
|
default |
◆ ~SwapApp()
| q2ns::SwapApp::~SwapApp |
( |
| ) |
|
|
overridedefault |
◆ AddSession()
◆ DoEndpointStart()
◆ DoRepeaterRound()
◆ EnsureSink()
| void q2ns::SwapApp::EnsureSink |
( |
uint16_t |
port, |
|
|
const std::string & |
proto |
|
) |
| |
|
private |
◆ GetOrCreateTcpSender()
| ns3::Ptr< ns3::Socket > q2ns::SwapApp::GetOrCreateTcpSender |
( |
const ns3::Address & |
dst, |
|
|
bool |
v6, |
|
|
uint16_t |
port |
|
) |
| |
|
private |
◆ GetOrCreateUdpSender()
| ns3::Ptr< ns3::Socket > q2ns::SwapApp::GetOrCreateUdpSender |
( |
uint16_t |
port, |
|
|
bool |
v6 |
|
) |
| |
|
private |
◆ GetOrCreateUdpV6Connected()
| ns3::Ptr< ns3::Socket > q2ns::SwapApp::GetOrCreateUdpV6Connected |
( |
const ns3::Ipv6Address & |
dst, |
|
|
uint16_t |
port |
|
) |
| |
|
private |
◆ GetTypeId()
| ns3::TypeId q2ns::SwapApp::GetTypeId |
( |
| ) |
|
|
static |
◆ MaybeDoBsmAndAnnounce()
| void q2ns::SwapApp::MaybeDoBsmAndAnnounce |
( |
SessionState & |
s | ) |
|
|
private |
Definition at line 300 of file q2ns-swap-app.cc.
References q2ns::SwapApp::SessionState::cfg, q2ns::SwapApp::SessionConfig::ctrlPort, q2ns::SwapApp::SessionState::haveBSM, m1, m2, q2ns::SwapApp::SessionConfig::nextEndAddr, q2ns::SwapApp::SessionConfig::nextEndAddr6, q2ns::SwapApp::SessionConfig::prevEndAddr6, q2ns::SwapApp::SessionConfig::proto, q2ns::SwapApp::SessionState::qNext, q2ns::SwapApp::SessionState::qPrev, and q2ns::SwapApp::SessionConfig::sid.
◆ OnCtrlRx()
| void q2ns::SwapApp::OnCtrlRx |
( |
ns3::Ptr< const ns3::Packet > |
pkt, |
|
|
const ns3::Address & |
from |
|
) |
| |
|
private |
◆ OnTcpConnected()
| void q2ns::SwapApp::OnTcpConnected |
( |
ns3::Ptr< ns3::Socket > |
s | ) |
|
|
private |
◆ OnTcpConnectFail()
| void q2ns::SwapApp::OnTcpConnectFail |
( |
ns3::Ptr< ns3::Socket > |
s | ) |
|
|
private |
◆ ScheduleSession()
| void q2ns::SwapApp::ScheduleSession |
( |
const SessionState & |
s | ) |
|
|
private |
◆ SetNetController()
◆ SetPayloadBytes()
| void q2ns::SwapApp::SetPayloadBytes |
( |
uint32_t |
n | ) |
|
|
inline |
◆ SetPeerAddress()
| void q2ns::SwapApp::SetPeerAddress |
( |
ns3::Ipv4Address |
v4 | ) |
|
|
inline |
◆ SetPeerAddress6()
| void q2ns::SwapApp::SetPeerAddress6 |
( |
ns3::Ipv6Address |
v6 | ) |
|
|
inline |
◆ SetUseIpv6()
| void q2ns::SwapApp::SetUseIpv6 |
( |
bool |
v6 | ) |
|
|
inline |
◆ StartApplication()
| void q2ns::SwapApp::StartApplication |
( |
| ) |
|
|
override |
◆ StopApplication()
| void q2ns::SwapApp::StopApplication |
( |
| ) |
|
|
override |
◆ TryApply()
Definition at line 375 of file q2ns-swap-app.cc.
References q2ns::SwapApp::SessionState::accumM1, q2ns::SwapApp::SessionState::accumM2, q2ns::SwapApp::SessionConfig::applyCorrections, q2ns::SwapApp::SessionState::cfg, q2ns::SwapApp::SessionState::done, q2ns::analysis::Fidelity(), q2ns::SwapApp::SessionState::haveF, q2ns::SwapApp::SessionState::haveQ, q2ns::SwapApp::SessionConfig::role, q2ns::SwapApp::SessionConfig::sid, q2ns::SwapApp::SessionState::targetQubit, q2ns::SwapApp::SessionConfig::verifyFidelity, q2ns::SwapApp::SessionConfig::verifyThreshold, q2ns::gates::X(), and q2ns::gates::Z().
◆ m_nc
◆ m_payloadBytes
| uint32_t q2ns::SwapApp::m_payloadBytes {16} |
|
private |
◆ m_peerV4
| ns3::Ipv4Address q2ns::SwapApp::m_peerV4 |
|
private |
◆ m_peerV6
| ns3::Ipv6Address q2ns::SwapApp::m_peerV6 |
|
private |
◆ m_sessions
| std::unordered_map<uint64_t, SessionState> q2ns::SwapApp::m_sessions |
|
private |
◆ m_sinksByPort
| std::unordered_map<uint16_t, ns3::Ptr<ns3::PacketSink> > q2ns::SwapApp::m_sinksByPort |
|
private |
◆ m_tcp
| std::unordered_map<TcpKey, ns3::Ptr<ns3::Socket>, TcpKeyHash> q2ns::SwapApp::m_tcp |
|
private |
◆ m_tcpPending
| std::unordered_map<uintptr_t, ns3::Ptr<ns3::Packet> > q2ns::SwapApp::m_tcpPending |
|
private |
◆ m_tcpPendingOnce
| std::unordered_map<uintptr_t, ns3::Ptr<ns3::Packet> > q2ns::SwapApp::m_tcpPendingOnce |
|
private |
◆ m_traceBSMDone
| ns3::TracedCallback<uint64_t, ns3::Time, uint8_t, uint8_t> q2ns::SwapApp::m_traceBSMDone |
◆ m_traceCorrectionApplied
| ns3::TracedCallback<uint64_t, ns3::Time> q2ns::SwapApp::m_traceCorrectionApplied |
◆ m_traceCtrlSent
| ns3::TracedCallback<uint64_t, ns3::Time, uint8_t, uint8_t> q2ns::SwapApp::m_traceCtrlSent |
◆ m_traceFrameResolved
| ns3::TracedCallback<uint64_t, ns3::Time, uint8_t, uint8_t> q2ns::SwapApp::m_traceFrameResolved |
◆ m_traceRoundStart
| ns3::TracedCallback<uint64_t, ns3::Time> q2ns::SwapApp::m_traceRoundStart |
◆ m_traceVerifyFidelity
| ns3::TracedCallback<uint64_t, ns3::Time, double> q2ns::SwapApp::m_traceVerifyFidelity |
◆ m_udp4
| std::unordered_map<uint16_t, ns3::Ptr<ns3::Socket> > q2ns::SwapApp::m_udp4 |
|
private |
◆ m_udp6
| std::unordered_map<uint16_t, ns3::Ptr<ns3::Socket> > q2ns::SwapApp::m_udp6 |
|
private |
◆ m_udp6_conn
| std::unordered_map<TcpKey, ns3::Ptr<ns3::Socket>, TcpKeyHash> q2ns::SwapApp::m_udp6_conn |
|
private |
◆ m_useIpv6
| bool q2ns::SwapApp::m_useIpv6 {false} |
|
private |
The documentation for this class was generated from the following files: