the upper part of a Face More...
#include <daemon/face/link-service.hpp>
Public Types | |
typedef LinkServiceCounters | Counters |
counters provided by LinkService More... | |
Public Member Functions | |
LinkService () | |
virtual | ~LinkService () |
virtual const Counters & | getCounters () const |
virtual ssize_t | getEffectiveMtu () const |
const Face * | getFace () const |
const Transport * | getTransport () const |
Transport * | getTransport () |
void | receivePacket (const Block &packet, const EndpointId &endpoint) |
performs LinkService specific operations to receive a lower-layer packet More... | |
void | sendData (const Data &data) |
Send Data. More... | |
void | sendInterest (const Interest &interest) |
Send Interest. More... | |
void | sendNack (const ndn::lp::Nack &nack) |
Send Nack. More... | |
void | setFaceAndTransport (Face &face, Transport &transport) |
set Face and Transport for LinkService More... | |
Public Attributes | |
signal::Signal< LinkService, Data, EndpointId > | afterReceiveData |
signals on Data received More... | |
signal::Signal< LinkService, Interest, EndpointId > | afterReceiveInterest |
signals on Interest 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... | |
Protected Member Functions | |
void | notifyDroppedInterest (const Interest &packet) |
void | receiveData (const Data &data, const EndpointId &endpoint) |
delivers received Data to forwarding More... | |
void | receiveInterest (const Interest &interest, const EndpointId &endpoint) |
delivers received Interest to forwarding More... | |
void | receiveNack (const lp::Nack &nack, const EndpointId &endpoint) |
delivers received Nack to forwarding More... | |
void | sendPacket (const Block &packet) |
send a lower-layer packet via Transport More... | |
Protected Attributes | |
PacketCounter | nInData |
count of incoming Data packets More... | |
PacketCounter | nInInterests |
count of incoming Interests More... | |
PacketCounter | nInNacks |
count of incoming Nacks More... | |
PacketCounter | nInterestsExceededRetx |
count of Interests dropped by reliability system for exceeding allowed number of retx More... | |
PacketCounter | nOutData |
count of outgoing Data packets More... | |
PacketCounter | nOutInterests |
count of outgoing Interests More... | |
PacketCounter | nOutNacks |
count of outgoing Nacks More... | |
counters provided by LinkService
Definition at line 80 of file link-service.hpp.
nfd::face::LinkService::LinkService | ( | ) |
Definition at line 34 of file link-service.cpp.
|
virtual |
Definition at line 40 of file link-service.cpp.
|
inlinevirtual |
Reimplemented in nfd::face::GenericLinkService.
Definition at line 226 of file link-service.hpp.
|
inlinevirtual |
Reimplemented in nfd::face::GenericLinkService.
Definition at line 232 of file link-service.hpp.
|
inline |
Definition at line 208 of file link-service.hpp.
|
inline |
Definition at line 214 of file link-service.hpp.
|
inline |
Definition at line 220 of file link-service.hpp.
|
protected |
Definition at line 118 of file link-service.cpp.
|
protected |
delivers received Data to forwarding
Definition at line 98 of file link-service.cpp.
|
protected |
delivers received Interest to forwarding
Definition at line 88 of file link-service.cpp.
|
protected |
delivers received Nack to forwarding
Definition at line 108 of file link-service.cpp.
|
inline |
performs LinkService specific operations to receive a lower-layer packet
Definition at line 238 of file link-service.hpp.
void nfd::face::LinkService::sendData | ( | const Data & | data | ) |
void nfd::face::LinkService::sendInterest | ( | const Interest & | interest | ) |
Send Interest.
Definition at line 55 of file link-service.cpp.
void nfd::face::LinkService::sendNack | ( | const ndn::lp::Nack & | nack | ) |
|
inlineprotected |
send a lower-layer packet via Transport
Definition at line 244 of file link-service.hpp.
set Face and Transport for LinkService
Definition at line 45 of file link-service.cpp.
signal::Signal<LinkService, Data, EndpointId> nfd::face::LinkService::afterReceiveData |
signals on Data received
Definition at line 140 of file link-service.hpp.
signal::Signal<LinkService, Interest, EndpointId> nfd::face::LinkService::afterReceiveInterest |
signals on Interest received
Definition at line 136 of file link-service.hpp.
signal::Signal<LinkService, lp::Nack, EndpointId> nfd::face::LinkService::afterReceiveNack |
signals on Nack received
Definition at line 144 of file link-service.hpp.
|
inherited |
count of incoming Data packets
Definition at line 57 of file link-service.hpp.
|
inherited |
count of incoming Interests
Definition at line 45 of file link-service.hpp.
|
inherited |
count of incoming Nacks
Definition at line 65 of file link-service.hpp.
|
inherited |
count of Interests dropped by reliability system for exceeding allowed number of retx
Definition at line 53 of file link-service.hpp.
|
inherited |
count of outgoing Data packets
Definition at line 61 of file link-service.hpp.
|
inherited |
count of outgoing Interests
Definition at line 49 of file link-service.hpp.
|
inherited |
count of outgoing Nacks
Definition at line 69 of file link-service.hpp.
signal::Signal<LinkService, Interest> nfd::face::LinkService::onDroppedInterest |
signals on Interest dropped by reliability system for exceeding allowed number of retx
Definition at line 148 of file link-service.hpp.