26 #ifndef NFD_DAEMON_FACE_LINK_SERVICE_HPP 27 #define NFD_DAEMON_FACE_LINK_SERVICE_HPP 102 getTransport()
const;
109 virtual const Counters&
113 getEffectiveMtu()
const;
120 sendInterest(
const Interest& interest);
126 sendData(
const Data& data);
132 sendNack(
const ndn::lp::Nack& nack);
154 receivePacket(
const Block& packet,
const EndpointId& endpoint);
160 receiveInterest(
const Interest& interest,
const EndpointId& endpoint);
165 receiveData(
const Data& data,
const EndpointId& endpoint);
170 receiveNack(
const lp::Nack& nack,
const EndpointId& endpoint);
176 sendPacket(
const Block& packet);
180 notifyDroppedInterest(
const Interest& packet);
186 doSendInterest(
const Interest& interest) = 0;
191 doSendData(
const Data& data) = 0;
196 doSendNack(
const lp::Nack& nack) = 0;
200 doReceivePacket(
const Block& packet,
const EndpointId& endpoint) = 0;
234 return m_transport->getMtu();
240 doReceivePacket(packet, endpoint);
246 m_transport->send(packet);
250 operator<<(std::ostream& os, const FaceLogHelper<LinkService>& flh);
253 typename std::enable_if<std::is_base_of<LinkService, T>::value &&
254 !std::is_same<LinkService, T>::value, std::ostream&>::type
255 operator<<(std::ostream& os, const FaceLogHelper<T>& flh)
257 return os << FaceLogHelper<LinkService>(flh.obj);
263 #endif // NFD_DAEMON_FACE_LINK_SERVICE_HPP PacketCounter nOutInterests
count of outgoing Interests
const Transport * getTransport() const
signal::Signal< LinkService, Interest > onDroppedInterest
signals on Interest dropped by reliability system for exceeding allowed number of retx ...
const Face * getFace() const
void sendPacket(const Block &packet)
send a lower-layer packet via Transport
virtual const Counters & getCounters() const
The lower half of a Face.
uint64_t EndpointId
Identifies a remote endpoint on the link.
represents a counter of number of packets
PacketCounter nInInterests
count of incoming Interests
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
PacketCounter nOutData
count of outgoing Data packets
counters provided by LinkService
PacketCounter nOutNacks
count of outgoing Nacks
signal::Signal< LinkService, Interest, EndpointId > afterReceiveInterest
signals on Interest received
LinkServiceCounters Counters
counters provided by LinkService
signal::Signal< LinkService, lp::Nack, EndpointId > afterReceiveNack
signals on Nack received
PacketCounter nInterestsExceededRetx
count of Interests dropped by reliability system for exceeding allowed number of retx ...
generalization of a network interface
PacketCounter nInData
count of incoming Data packets
void receivePacket(const Block &packet, const EndpointId &endpoint)
performs LinkService specific operations to receive a lower-layer packet
PacketCounter nInNacks
count of incoming Nacks
signal::Signal< LinkService, Data, EndpointId > afterReceiveData
signals on Data received
virtual ssize_t getEffectiveMtu() const