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);
131 operator<<(std::ostream& os, const FaceLogHelper<LinkService>& flh)
133 const Face* face = flh.obj.getFace();
134 if (face ==
nullptr) {
135 os <<
"[id=0,local=unknown,remote=unknown] ";
138 os <<
"[id=" << face->getId() <<
",local=" << face->getLocalUri()
139 <<
",remote=" << face->getRemoteUri() <<
"] ";
void sendInterest(const Interest &interest)
Send Interest.
PacketCounter nOutData
count of outgoing Data packets
void sendData(const Data &data)
Send Data.
#define NFD_LOG_INIT(name)
#define NFD_LOG_FACE_TRACE(msg)
Log a message at TRACE level.
PacketCounter nInInterests
count of incoming Interests
void notifyDroppedInterest(const Interest &packet)
PacketCounter nInterestsExceededRetx
count of Interests dropped by reliability system for exceeding allowed number of retx ...
PacketCounter nInNacks
count of incoming Nacks
Represents an Interest packet.
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
void receiveInterest(const Interest &interest, const EndpointId &endpoint)
delivers received Interest to forwarding
Copyright (c) 2011-2015 Regents of the University of California.
signal::Signal< LinkService, Interest, EndpointId > afterReceiveInterest
signals on Interest received
PacketCounter nOutInterests
count of outgoing Interests
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
void receiveNack(const lp::Nack &nack, const EndpointId &endpoint)
delivers received Nack to forwarding
PacketCounter nOutNacks
count of outgoing Nacks
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.
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
void receiveData(const Data &data, const EndpointId &endpoint)
delivers received Data to forwarding