26 #ifndef NFD_DAEMON_FACE_LINK_SERVICE_HPP 27 #define NFD_DAEMON_FACE_LINK_SERVICE_HPP 197 doSendInterest(
const Interest& interest) = 0;
202 doSendData(
const Data& data) = 0;
207 doSendNack(
const lp::Nack& nack) = 0;
245 doReceivePacket(std::move(packet));
251 m_transport->
send(std::move(packet));
255 operator<<(std::ostream& os, const FaceLogHelper<LinkService>& flh);
258 typename std::enable_if<std::is_base_of<LinkService, T>::value &&
259 !std::is_same<LinkService, T>::value, std::ostream&>::type
260 operator<<(std::ostream& os, const FaceLogHelper<T>& flh)
262 return os << FaceLogHelper<LinkService>(flh.obj);
268 #endif // NFD_DAEMON_FACE_LINK_SERVICE_HPP signal::Signal< LinkService, Data > afterReceiveData
signals on Data received
void sendInterest(const Interest &interest)
send Interest
PacketCounter nOutData
count of outgoing Data packets
void sendData(const Data &data)
send Data
PacketCounter nInInterests
count of incoming Interests
generalization of a network interface
void notifyDroppedInterest(const Interest &packet)
const Transport * getTransport() const
const Face * getFace() const
stores a packet along with the remote endpoint
PacketCounter nInNacks
count of incoming Nacks
Represents an Interest packet.
represents a counter of number of packets
void sendPacket(Transport::Packet &&packet)
sends a lower-layer packet via Transport
provides a lightweight signal / event system
PacketCounter nDroppedInterests
count of Interests dropped by reliability system for exceeding allowed number of retx ...
signal::Signal< LinkService, Interest > onDroppedInterest
signals on Interest dropped by reliability system for exceeding allowed number of retx ...
represents a Network Nack
void send(Packet &&packet)
send a link-layer packet
Copyright (c) 2011-2015 Regents of the University of California.
signal::Signal< LinkService, lp::Nack > afterReceiveNack
signals on Nack received
void receivePacket(Transport::Packet &&packet)
performs LinkService specific operations to receive a lower-layer packet
void receiveNack(const lp::Nack &nack)
delivers received Nack to forwarding
counters provided by LinkService
PacketCounter nOutInterests
count of outgoing Interests
LinkServiceCounters Counters
counters provided by LinkService
signal::Signal< LinkService, Interest > afterSendInterest
signals on Interest sent
PacketCounter nInData
count of incoming Data packets
virtual const Counters & getCounters() const
PacketCounter nOutNacks
count of outgoing Nacks
void receiveData(const Data &data)
delivers received Data to forwarding
void sendNack(const ndn::lp::Nack &nack)
send Nack
void setFaceAndTransport(Face &face, Transport &transport)
set Face and Transport for LinkService
Represents a Data packet.
signal::Signal< LinkService, lp::Nack > afterSendNack
signals on Nack sent
signal::Signal< LinkService, Data > afterSendData
signals on Data sent
signal::Signal< LinkService, Interest > afterReceiveInterest
signals on Interest received
void receiveInterest(const Interest &interest)
delivers received Interest to forwarding