36 , m_transport(nullptr)
47 BOOST_ASSERT(m_face ==
nullptr);
48 BOOST_ASSERT(m_transport ==
nullptr);
51 m_transport = &transport;
57 BOOST_ASSERT(m_transport !=
nullptr);
62 doSendInterest(interest);
70 BOOST_ASSERT(m_transport !=
nullptr);
83 BOOST_ASSERT(m_transport !=
nullptr);
124 operator<<(std::ostream& os, const FaceLogHelper<LinkService>& flh)
126 const Face*
face = flh.obj.getFace();
127 if (face ==
nullptr) {
128 os <<
"[id=0,local=unknown,remote=unknown] ";
signal::Signal< LinkService, Data > afterReceiveData
signals on Data received
FaceUri getLocalUri() const
void sendInterest(const Interest &interest)
send Interest
PacketCounter nOutData
count of outgoing Data
void sendData(const Data &data)
send Data
#define NFD_LOG_FACE_TRACE(msg)
Log a message at TRACE level.
PacketCounter nInInterests
count of incoming Interests
generalization of a network interface
PacketCounter nInNacks
count of incoming Nacks
represents an Interest packet
FaceUri getRemoteUri() const
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 receiveNack(const lp::Nack &nack)
delivers received Nack to forwarding
PacketCounter nOutInterests
count of outgoing Interests
signal::Signal< LinkService, Interest > afterSendInterest
signals on Interest sent
PacketCounter nInData
count of incoming Data
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
#define NFD_LOG_INIT(name)
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