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);
163 receiveInterest(
const Interest& interest);
168 receiveData(
const Data& data);
185 doSendInterest(
const Interest& interest) = 0;
190 doSendData(
const Data& data) = 0;
195 doSendNack(
const lp::Nack& nack) = 0;
233 doReceivePacket(std::move(packet));
239 m_transport->send(std::move(packet));
243 operator<<(std::ostream& os, const FaceLogHelper<LinkService>& flh);
246 typename std::enable_if<std::is_base_of<LinkService, T>::value &&
247 !std::is_same<LinkService, T>::value, std::ostream&>::type
248 operator<<(std::ostream& os, const FaceLogHelper<T>& flh)
250 return os << FaceLogHelper<LinkService>(flh.obj);
256 #endif // NFD_DAEMON_FACE_LINK_SERVICE_HPP signal::Signal< LinkService, Data > afterReceiveData
signals on Data received
PacketCounter nOutData
count of outgoing Data
PacketCounter nInInterests
count of incoming Interests
generalization of a network interface
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
represents a Network Nack
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
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
virtual const Counters & getCounters() const
PacketCounter nOutNacks
count of outgoing Nacks
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