The upper half of a Face. More...
#include <daemon/face/link-service.hpp>
Inheritance diagram for nfd::face::LinkService:
Collaboration diagram for nfd::face::LinkService:Public Types | |
| using | Counters = LinkServiceCounters |
| Counters provided by LinkService. More... | |
Public Member Functions | |
| virtual | ~LinkService () |
| virtual const Counters & | getCounters () const |
| virtual ssize_t | getEffectiveMtu () const |
| const Face * | getFace () const noexcept |
| Returns the Face to which this LinkService is attached. More... | |
| const Transport * | getTransport () const noexcept |
| Returns the Transport to which this LinkService is attached. More... | |
| Transport * | getTransport () noexcept |
| Returns the Transport to which this LinkService is attached. More... | |
| 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) noexcept |
| Set Face and Transport for this 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 81 of file link-service.hpp.
|
virtualdefault |
|
inlinevirtual |
Reimplemented in nfd::face::GenericLinkService.
Definition at line 122 of file link-service.hpp.
|
inlinevirtual |
Reimplemented in nfd::face::GenericLinkService.
Definition at line 223 of file link-service.hpp.
|
inlinenoexcept |
Returns the Face to which this LinkService is attached.
Definition at line 98 of file link-service.hpp.
|
inlinenoexcept |
Returns the Transport to which this LinkService is attached.
Definition at line 107 of file link-service.hpp.
|
inlinenoexcept |
Returns the Transport to which this LinkService is attached.
Definition at line 116 of file link-service.hpp.
|
protected |
Definition at line 109 of file link-service.cpp.
|
protected |
Delivers received Data to forwarding.
Definition at line 89 of file link-service.cpp.
|
protected |
Delivers received Interest to forwarding.
Definition at line 79 of file link-service.cpp.
|
protected |
Delivers received Nack to forwarding.
Definition at line 99 of file link-service.cpp.
|
inline |
Performs LinkService specific operations to receive a lower-layer packet.
Definition at line 229 of file link-service.hpp.
| void nfd::face::LinkService::sendData | ( | const Data & | data | ) |
Send Data.
Definition at line 57 of file link-service.cpp.
| void nfd::face::LinkService::sendInterest | ( | const Interest & | interest | ) |
Send Interest.
Definition at line 46 of file link-service.cpp.
| void nfd::face::LinkService::sendNack | ( | const ndn::lp::Nack & | nack | ) |
Send Nack.
Definition at line 68 of file link-service.cpp.
|
inlineprotected |
Send a lower-layer packet via Transport.
Definition at line 235 of file link-service.hpp.
Set Face and Transport for this LinkService.
Definition at line 36 of file link-service.cpp.
| signal::Signal<LinkService, Data, EndpointId> nfd::face::LinkService::afterReceiveData |
Signals on Data received.
Definition at line 155 of file link-service.hpp.
| signal::Signal<LinkService, Interest, EndpointId> nfd::face::LinkService::afterReceiveInterest |
Signals on Interest received.
Definition at line 151 of file link-service.hpp.
| signal::Signal<LinkService, lp::Nack, EndpointId> nfd::face::LinkService::afterReceiveNack |
Signals on Nack received.
Definition at line 159 of file link-service.hpp.
|
inherited |
Count of incoming Data packets.
Definition at line 56 of file link-service.hpp.
|
inherited |
Count of incoming Interests.
Definition at line 44 of file link-service.hpp.
|
inherited |
Count of incoming Nacks.
Definition at line 64 of file link-service.hpp.
|
inherited |
Count of Interests dropped by reliability system for exceeding allowed number of retx.
Definition at line 52 of file link-service.hpp.
|
inherited |
Count of outgoing Data packets.
Definition at line 60 of file link-service.hpp.
|
inherited |
Count of outgoing Interests.
Definition at line 48 of file link-service.hpp.
|
inherited |
Count of outgoing Nacks.
Definition at line 68 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 163 of file link-service.hpp.