Implementation of LinkService for ndnSIM application. More...
#include <ndn-app-link-service.hpp>
Public Member Functions | |
AppLinkService (Ptr< App > app) | |
Default constructor. More... | |
virtual | ~AppLinkService () |
void | onReceiveInterest (const Interest &interest) |
void | onReceiveData (const Data &data) |
void | onReceiveNack (const lp::Nack &nack) |
Public Member Functions inherited from nfd::face::LinkService | |
LinkService () | |
virtual | ~LinkService () |
void | setFaceAndTransport (Face &face, Transport &transport) |
set Face and Transport for LinkService More... | |
const Face * | getFace () const |
const Transport * | getTransport () const |
Transport * | getTransport () |
virtual const Counters & | getCounters () const |
void | sendInterest (const Interest &interest) |
send Interest More... | |
void | sendData (const Data &data) |
send Data More... | |
void | sendNack (const ndn::lp::Nack &nack) |
send Nack More... | |
void | receivePacket (Transport::Packet &&packet) |
performs LinkService specific operations to receive a lower-layer packet More... | |
Additional Inherited Members | |
Public Types inherited from nfd::face::LinkService | |
typedef LinkServiceCounters | Counters |
counters provided by LinkService More... | |
Public Attributes inherited from nfd::face::LinkService | |
signal::Signal< LinkService, Interest > | afterReceiveInterest |
signals on Interest received More... | |
signal::Signal< LinkService, Data > | afterReceiveData |
signals on Data received More... | |
signal::Signal< LinkService, lp::Nack > | afterReceiveNack |
signals on Nack received More... | |
signal::Signal< LinkService, Interest > | onDroppedInterest |
signals on Interest dropped by reliability system for exceeding allowed number of retx More... | |
signal::Signal< LinkService, Interest > | afterSendInterest |
signals on Interest sent More... | |
signal::Signal< LinkService, Data > | afterSendData |
signals on Data sent More... | |
signal::Signal< LinkService, lp::Nack > | afterSendNack |
signals on Nack sent More... | |
Protected Member Functions inherited from nfd::face::LinkService | |
void | receiveInterest (const Interest &interest) |
delivers received Interest to forwarding More... | |
void | receiveData (const Data &data) |
delivers received Data to forwarding More... | |
void | receiveNack (const lp::Nack &nack) |
delivers received Nack to forwarding More... | |
void | sendPacket (Transport::Packet &&packet) |
sends a lower-layer packet via Transport More... | |
void | notifyDroppedInterest (const Interest &packet) |
Protected Attributes inherited from nfd::face::LinkServiceCounters | |
PacketCounter | nInInterests |
count of incoming Interests More... | |
PacketCounter | nOutInterests |
count of outgoing Interests More... | |
PacketCounter | nDroppedInterests |
count of Interests dropped by reliability system for exceeding allowed number of retx More... | |
PacketCounter | nInData |
count of incoming Data packets More... | |
PacketCounter | nOutData |
count of outgoing Data packets More... | |
PacketCounter | nInNacks |
count of incoming Nacks More... | |
PacketCounter | nOutNacks |
count of outgoing Nacks More... | |
Implementation of LinkService for ndnSIM application.
Definition at line 41 of file ndn-app-link-service.hpp.
ns3::ndn::AppLinkService::AppLinkService | ( | Ptr< App > | app | ) |
Default constructor.
Definition at line 35 of file ndn-app-link-service.cpp.
|
virtual |
Definition at line 44 of file ndn-app-link-service.cpp.
void ns3::ndn::AppLinkService::onReceiveInterest | ( | const Interest & | interest | ) |
Definition at line 79 of file ndn-app-link-service.cpp.
References nfd::face::LinkService::receiveInterest().
Referenced by ns3::ndn::ConsumerZipfMandelbrot::SendPacket(), and ns3::ndn::Consumer::SendPacket().
void ns3::ndn::AppLinkService::onReceiveData | ( | const Data & | data | ) |
Definition at line 85 of file ndn-app-link-service.cpp.
References nfd::face::LinkService::receiveData().
Referenced by ns3::ndn::Producer::OnInterest().
void ns3::ndn::AppLinkService::onReceiveNack | ( | const lp::Nack & | nack | ) |
Definition at line 91 of file ndn-app-link-service.cpp.
References nfd::face::LinkService::receiveNack().