26 #ifndef NFD_DAEMON_FACE_LINK_SERVICE_HPP 27 #define NFD_DAEMON_FACE_LINK_SERVICE_HPP 100 getTransport()
const;
107 virtual const Counters&
115 sendInterest(
const Interest& interest);
121 sendData(
const Data& data);
127 sendNack(
const ndn::lp::Nack& nack);
151 receiveInterest(
const Interest& interest);
156 receiveData(
const Data& data);
161 receiveNack(
const lp::Nack& nack);
173 doSendInterest(
const Interest& interest) = 0;
178 doSendData(
const Data& data) = 0;
183 doSendNack(
const lp::Nack& nack) = 0;
221 doReceivePacket(std::move(packet));
227 m_transport->send(std::move(packet));
231 operator<<(std::ostream& os, const FaceLogHelper<LinkService>& flh);
234 typename std::enable_if<std::is_base_of<LinkService, T>::value &&
235 !std::is_same<LinkService, T>::value, std::ostream&>::type
236 operator<<(std::ostream& os, const FaceLogHelper<T>& flh)
238 return os << FaceLogHelper<LinkService>(flh.obj);
244 #endif // NFD_DAEMON_FACE_LINK_SERVICE_HPP PacketCounter nOutInterests
count of outgoing Interests
signal::Signal< LinkService, lp::Nack > afterReceiveNack
signals on Nack received
signal::Signal< LinkService, Interest > afterReceiveInterest
signals on Interest received
virtual const Counters & getCounters() const
stores a packet along with the remote endpoint
represents a counter of number of packets
PacketCounter nInInterests
count of incoming Interests
const Transport * getTransport() const
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
void sendPacket(Transport::Packet &&packet)
sends a lower-layer packet via Transport
PacketCounter nOutData
count of outgoing Data
counters provided by LinkService
PacketCounter nOutNacks
count of outgoing Nacks
LinkServiceCounters Counters
counters provided by LinkService
const Face * getFace() const
generalization of a network interface
PacketCounter nInData
count of incoming Data
void receivePacket(Transport::Packet &&packet)
performs LinkService specific operations to receive a lower-layer packet
PacketCounter nInNacks
count of incoming Nacks
signal::Signal< LinkService, Data > afterReceiveData
signals on Data received