38 BOOST_ASSERT(m_face ==
nullptr);
39 BOOST_ASSERT(m_transport ==
nullptr);
42 m_transport = &transport;
48 BOOST_ASSERT(m_transport !=
nullptr);
53 doSendInterest(interest);
59 BOOST_ASSERT(m_transport !=
nullptr);
70 BOOST_ASSERT(m_transport !=
nullptr);
118 const Face* face = flh.
obj.getFace();
119 if (face ==
nullptr) {
120 os <<
"[id=0,local=unknown,remote=unknown] ";
Generalization of a network interface.
FaceUri getLocalUri() const noexcept
Returns a FaceUri representing the local endpoint.
FaceUri getRemoteUri() const noexcept
Returns a FaceUri representing the remote endpoint.
FaceId getId() const noexcept
Returns the face ID.
For internal use by FaceLogging macros.
PacketCounter nOutData
Count of outgoing Data packets.
PacketCounter nOutInterests
Count of outgoing Interest packets.
PacketCounter nOutNacks
Count of outgoing Nack packets.
PacketCounter nInInterests
Count of incoming Interest packets.
PacketCounter nInData
Count of incoming Data packets.
PacketCounter nInNacks
Count of incoming Nack packets.
PacketCounter nInterestsExceededRetx
Count of Interests dropped by reliability system for exceeding allowed number of retx.
void sendData(const Data &data)
Send Data.
signal::Signal< LinkService, Interest, EndpointId > afterReceiveInterest
Called when an Interest packet is received.
void receiveNack(const lp::Nack &nack, const EndpointId &endpoint)
Delivers received Nack to forwarding.
void receiveInterest(const Interest &interest, const EndpointId &endpoint)
Delivers received Interest to forwarding.
void notifyDroppedInterest(const Interest &packet)
signal::Signal< LinkService, Interest > onDroppedInterest
Called when an Interest is dropped by the reliability system for exceeding the allowed number of retr...
void receiveData(const Data &data, const EndpointId &endpoint)
Delivers received Data to forwarding.
void setFaceAndTransport(Face &face, Transport &transport) noexcept
Set Face and Transport for this LinkService.
signal::Signal< LinkService, lp::Nack, EndpointId > afterReceiveNack
Called when a Nack packet is received.
void sendNack(const ndn::lp::Nack &nack)
Send Nack.
signal::Signal< LinkService, Data, EndpointId > afterReceiveData
Called when a Data packet is received.
void sendInterest(const Interest &interest)
Send Interest.
The lower half of a Face.
#define NFD_LOG_FACE_TRACE(msg)
Log a message at TRACE level.
#define NFD_LOG_INIT(name)
std::ostream & operator<<(std::ostream &os, const FaceLogHelper< Face > &flh)
std::variant< std::monostate, ethernet::Address, udp::Endpoint > EndpointId
Identifies a remote endpoint on the link.