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);
188 sendPacket(
const Block& packet);
192 notifyDroppedInterest(
const Interest& packet);
198 doSendInterest(
const Interest& interest) = 0;
203 doSendData(
const Data& data) = 0;
208 doSendNack(
const lp::Nack& nack) = 0;
246 return m_transport->getMtu();
252 doReceivePacket(packet, endpoint);
258 m_transport->send(packet);
262 operator<<(std::ostream& os, const FaceLogHelper<LinkService>& flh);
267 operator<<(std::ostream& os, const FaceLogHelper<T>& flh)
269 return os << FaceLogHelper<LinkService>(flh.obj);
275 #endif // NFD_DAEMON_FACE_LINK_SERVICE_HPP virtual ssize_t getEffectiveMtu() const
PacketCounter nOutData
count of outgoing Data packets
PacketCounter nInInterests
count of incoming Interests
void receivePacket(const Block &packet, const EndpointId &endpoint)
performs LinkService specific operations to receive a lower-layer packet
const Transport * getTransport() const
const Face * getFace() const
PacketCounter nInterestsExceededRetx
count of Interests dropped by reliability system for exceeding allowed number of retx ...
PacketCounter nInNacks
count of incoming Nacks
Represents a TLV element of the NDN packet format.
Represents an Interest packet.
represents a counter of number of packets
provides a lightweight signal / event system
uint64_t EndpointId
Identifies a remote endpoint on the link.
signal::Signal< LinkService, lp::Nack, EndpointId > afterReceiveNack
signals on Nack received
signal::Signal< LinkService, Interest > onDroppedInterest
signals on Interest dropped by reliability system for exceeding allowed number of retx ...
represents a Network Nack
Copyright (c) 2011-2015 Regents of the University of California.
counters provided by LinkService
signal::Signal< LinkService, Interest, EndpointId > afterReceiveInterest
signals on Interest received
PacketCounter nOutInterests
count of outgoing Interests
LinkServiceCounters Counters
counters provided by LinkService
signal::Signal< LinkService, Interest > afterSendInterest
signals on Interest sent
signal::Signal< LinkService, Data, EndpointId > afterReceiveData
signals on Data received
PacketCounter nInData
count of incoming Data packets
virtual const Counters & getCounters() const
PacketCounter nOutNacks
count of outgoing Nacks
void sendPacket(const Block &packet)
send a lower-layer packet via Transport
Represents a Data packet.
The lower half of a Face.
signal::Signal< LinkService, lp::Nack > afterSendNack
signals on Nack sent
signal::Signal< LinkService, Data > afterSendData
signals on Data sent