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 | |
typedef GenericLinkServiceCounters | Counters |
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=Options()) | |
const Options & | getOptions () const |
get Options used by GenericLinkService More... | |
void | setOptions (const Options &options) |
sets Options used by GenericLinkService More... | |
virtual const Counters & | getCounters () const override |
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) |
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 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 > | 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... | |
Protected Member Functions inherited from nfd::face::GenericLinkServiceCounters | |
GenericLinkServiceCounters (const LpReassembler &reassembler) | |
Protected Attributes inherited from nfd::face::LinkServiceCounters | |
PacketCounter | nInInterests |
count of incoming Interests More... | |
PacketCounter | nOutInterests |
count of outgoing Interests More... | |
PacketCounter | nInData |
count of incoming Data More... | |
PacketCounter | nOutData |
count of outgoing Data 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... | |
GenericLinkService is a LinkService that implements the NDNLPv2 protocol.
Definition at line 79 of file generic-link-service.hpp.
counters provided by GenericLinkService
Definition at line 114 of file generic-link-service.hpp.
Definition at line 46 of file generic-link-service.cpp.
References ndn::lp::Packet::add(), nfd::face::GenericLinkService::Options::allowFragmentation, nfd::face::GenericLinkService::Options::allowLocalFields, nfd::face::GenericLinkService::Options::allowReassembly, nfd::face::LpReassembler::beforeTimeout, ndn::tlv::Data, nfd::face::LpFragmenter::fragmentPacket(), ndn::lp::Packet::get(), ndn::lp::Nack::getHeader(), ndn::lp::Nack::getInterest(), nfd::face::Transport::getMtu(), ndn::TagHost::getTag(), nfd::face::LinkService::getTransport(), ndn::lp::Packet::has(), ndn::tlv::Interest, nfd::face::MTU_UNLIMITED, NFD_LOG_FACE_TRACE, NFD_LOG_FACE_WARN, nfd::face::GenericLinkServiceCounters::nFragmentationErrors, nfd::face::GenericLinkServiceCounters::nInLpInvalid, nfd::face::GenericLinkServiceCounters::nInNetInvalid, nfd::face::GenericLinkServiceCounters::nOutOverMtu, nfd::face::GenericLinkServiceCounters::nReassemblyTimeouts, nfd::face::LinkService::receiveData(), nfd::face::LpReassembler::receiveFragment(), nfd::face::LinkService::receiveInterest(), nfd::face::LinkService::receiveNack(), nfd::face::LinkService::sendPacket(), ndn::lp::Packet::set(), ndn::lp::Nack::setHeader(), ndn::TagHost::setTag(), ndn::Block::type(), ndn::Interest::wireEncode(), and ndn::Data::wireEncode().
|
inline |
get Options used by GenericLinkService
Definition at line 231 of file generic-link-service.hpp.
Referenced by nfd::FaceManager::setConfigFile().
|
inline |
sets Options used by GenericLinkService
Definition at line 237 of file generic-link-service.hpp.
|
inlineoverridevirtual |
Reimplemented from nfd::face::LinkService.
Definition at line 243 of file generic-link-service.hpp.