GenericLinkService is a LinkService that implements the NDNLPv2 protocol. More...
#include <generic-link-service.hpp>
Classes | |
class | Options |
Options that control the behavior of GenericLinkService. More... | |
Public Types | |
using | Counters = GenericLinkServiceCounters |
counters provided by GenericLinkService More... | |
Public Types inherited from nfd::face::LinkService | |
typedef LinkServiceCounters | Counters |
counters provided by LinkService More... | |
Public Member Functions | |
GenericLinkService (const Options &options={}) | |
const Options & | getOptions () const |
get Options used by GenericLinkService More... | |
void | setOptions (const Options &options) |
sets Options used by GenericLinkService More... | |
const Counters & | getCounters () const OVERRIDE_WITH_TESTS_ELSE_FINAL |
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 () |
void | sendInterest (const Interest &interest, const EndpointId &endpoint) |
Send Interest to endpoint . More... | |
void | sendData (const Data &data, const EndpointId &endpoint) |
Send Data to endpoint . More... | |
void | sendNack (const ndn::lp::Nack &nack, const EndpointId &endpoint) |
Send Nack to endpoint . More... | |
void | receivePacket (const Block &packet, const EndpointId &endpoint) |
performs LinkService specific operations to receive a lower-layer packet More... | |
Friends | |
class | LpReliability |
Additional Inherited Members | |
Public Attributes inherited from nfd::face::LinkService | |
signal::Signal< LinkService, Interest, EndpointId > | afterReceiveInterest |
signals on Interest received More... | |
signal::Signal< LinkService, Data, EndpointId > | afterReceiveData |
signals on Data received More... | |
signal::Signal< LinkService, lp::Nack, EndpointId > | 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, const EndpointId &endpoint) |
delivers received Interest to forwarding More... | |
void | receiveData (const Data &data, const EndpointId &endpoint) |
delivers received Data to forwarding More... | |
void | receiveNack (const lp::Nack &nack, const EndpointId &endpoint) |
delivers received Nack to forwarding More... | |
void | sendPacket (const Block &packet, const EndpointId &endpoint) |
send a lower-layer packet via Transport to endpoint 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... | |
Protected Attributes inherited from nfd::face::GenericLinkServiceCounters | |
PacketCounter | nFragmentationErrors |
count of failed fragmentations More... | |
PacketCounter | nOutOverMtu |
count of outgoing LpPackets dropped due to exceeding MTU limit More... | |
PacketCounter | nInLpInvalid |
count of invalid LpPackets dropped before reassembly More... | |
SizeCounter< LpReassembler > | nReassembling |
count of network-layer packets currently being reassembled More... | |
PacketCounter | nReassemblyTimeouts |
count of dropped partial network-layer packets due to reassembly timeout More... | |
PacketCounter | nInNetInvalid |
count of invalid reassembled network-layer packets dropped More... | |
PacketCounter | nAcknowledged |
count of network-layer packets that did not require retransmission of a fragment More... | |
PacketCounter | nRetransmitted |
count of network-layer packets that had at least one fragment retransmitted, but were eventually received in full More... | |
PacketCounter | nRetxExhausted |
count of network-layer packets dropped because a fragment reached the maximum number of retransmissions More... | |
PacketCounter | nCongestionMarked |
count of outgoing LpPackets that were marked with congestion marks More... | |
GenericLinkService is a LinkService that implements the NDNLPv2 protocol.
Definition at line 94 of file generic-link-service.hpp.
counters provided by GenericLinkService
Definition at line 165 of file generic-link-service.hpp.
|
explicit |
Definition at line 42 of file generic-link-service.cpp.
References nfd::face::LpReassembler::beforeTimeout, nfd::face::LinkService::notifyDroppedInterest(), nfd::face::GenericLinkServiceCounters::nReassembling, nfd::face::GenericLinkServiceCounters::nReassemblyTimeouts, and nfd::face::LpReliability::onDroppedInterest.
|
inline |
get Options used by GenericLinkService
Definition at line 315 of file generic-link-service.hpp.
Referenced by nfd::copyFaceProperties(), nfd::makeFaceStatus(), nfd::makeUpdateFaceResponse(), and nfd::updateLinkServiceOptions().
void nfd::face::GenericLinkService::setOptions | ( | const Options & | options | ) |
sets Options used by GenericLinkService
Definition at line 57 of file generic-link-service.cpp.
References nfd::face::GenericLinkService::Options::fragmenterOptions, nfd::face::GenericLinkService::Options::reassemblerOptions, nfd::face::GenericLinkService::Options::reliabilityOptions, nfd::face::LpFragmenter::setOptions(), nfd::face::LpReassembler::setOptions(), and nfd::face::LpReliability::setOptions().
|
inlinevirtual |
Reimplemented from nfd::face::LinkService.
Definition at line 321 of file generic-link-service.hpp.
|
friend |
Definition at line 311 of file generic-link-service.hpp.