the upper part of a Face More...
#include <link-service.hpp>
Public Types | |
typedef LinkServiceCounters | Counters |
counters provided by LinkService More... | |
Public Member Functions | |
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, 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... | |
Public Attributes | |
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 | |
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) |
Additional Inherited Members | |
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... | |
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.
set Face and Transport for LinkService
Definition at line 45 of file link-service.cpp.
|
inline |
Definition at line 217 of file link-service.hpp.
Referenced by nfd::face::operator<<().
|
inline |
Definition at line 223 of file link-service.hpp.
|
inline |
Definition at line 229 of file link-service.hpp.
|
inlinevirtual |
Reimplemented in nfd::face::GenericLinkService.
Definition at line 235 of file link-service.hpp.
void nfd::face::LinkService::sendInterest | ( | const Interest & | interest, |
const EndpointId & | endpoint | ||
) |
Send Interest to endpoint
.
Definition at line 55 of file link-service.cpp.
References afterSendInterest, NFD_LOG_FACE_TRACE, and nfd::face::LinkServiceCounters::nOutInterests.
void nfd::face::LinkService::sendData | ( | const Data & | data, |
const EndpointId & | endpoint | ||
) |
Send Data to endpoint
.
Definition at line 68 of file link-service.cpp.
References afterSendData, NFD_LOG_FACE_TRACE, and nfd::face::LinkServiceCounters::nOutData.
void nfd::face::LinkService::sendNack | ( | const ndn::lp::Nack & | nack, |
const EndpointId & | endpoint | ||
) |
Send Nack to endpoint
.
Definition at line 81 of file link-service.cpp.
References afterSendNack, NFD_LOG_FACE_TRACE, and nfd::face::LinkServiceCounters::nOutNacks.
|
inline |
performs LinkService specific operations to receive a lower-layer packet
Definition at line 241 of file link-service.hpp.
Referenced by nfd::face::Transport::receive().
|
protected |
delivers received Interest to forwarding
Definition at line 94 of file link-service.cpp.
References afterReceiveInterest, NFD_LOG_FACE_TRACE, and nfd::face::LinkServiceCounters::nInInterests.
Referenced by ns3::ndn::AppLinkService::onReceiveInterest().
|
protected |
delivers received Data to forwarding
Definition at line 104 of file link-service.cpp.
References afterReceiveData, NFD_LOG_FACE_TRACE, and nfd::face::LinkServiceCounters::nInData.
Referenced by ns3::ndn::AppLinkService::onReceiveData().
|
protected |
delivers received Nack to forwarding
Definition at line 114 of file link-service.cpp.
References afterReceiveNack, NFD_LOG_FACE_TRACE, and nfd::face::LinkServiceCounters::nInNacks.
Referenced by ns3::ndn::AppLinkService::onReceiveNack().
|
inlineprotected |
send a lower-layer packet via Transport to endpoint
Definition at line 247 of file link-service.hpp.
References nfd::face::Transport::send().
|
protected |
Definition at line 124 of file link-service.cpp.
References nfd::face::LinkServiceCounters::nDroppedInterests, and onDroppedInterest.
Referenced by nfd::face::GenericLinkService::GenericLinkService().
signal::Signal<LinkService, Interest, EndpointId> nfd::face::LinkService::afterReceiveInterest |
signals on Interest received
Definition at line 133 of file link-service.hpp.
Referenced by receiveInterest().
signal::Signal<LinkService, Data, EndpointId> nfd::face::LinkService::afterReceiveData |
signals on Data received
Definition at line 137 of file link-service.hpp.
Referenced by receiveData().
signal::Signal<LinkService, lp::Nack, EndpointId> nfd::face::LinkService::afterReceiveNack |
signals on Nack received
Definition at line 141 of file link-service.hpp.
Referenced by receiveNack().
signal::Signal<LinkService, Interest> nfd::face::LinkService::onDroppedInterest |
signals on Interest dropped by reliability system for exceeding allowed number of retx
Definition at line 145 of file link-service.hpp.
Referenced by notifyDroppedInterest().
signal::Signal<LinkService, Interest> nfd::face::LinkService::afterSendInterest |
signals on Interest sent
Definition at line 149 of file link-service.hpp.
Referenced by sendInterest().
signal::Signal<LinkService, Data> nfd::face::LinkService::afterSendData |
signal::Signal<LinkService, lp::Nack> nfd::face::LinkService::afterSendNack |