|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
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, endpoint);
70 BOOST_ASSERT(m_transport !=
nullptr);
75 doSendData(data, endpoint);
83 BOOST_ASSERT(m_transport !=
nullptr);
88 doSendNack(nack, endpoint);
134 if (face ==
nullptr) {
135 os <<
"[id=0,local=unknown,remote=unknown] ";
void receiveData(const Data &data, const EndpointId &endpoint)
delivers received Data to forwarding
void sendInterest(const Interest &interest, const EndpointId &endpoint)
Send Interest to endpoint.
void setFaceAndTransport(Face &face, Transport &transport)
set Face and Transport for LinkService
PacketCounter nDroppedInterests
count of Interests dropped by reliability system for exceeding allowed number of retx
signal::Signal< LinkService, Data, EndpointId > afterReceiveData
signals on Data received
void notifyDroppedInterest(const Interest &packet)
PacketCounter nInNacks
count of incoming Nacks
void receiveInterest(const Interest &interest, const EndpointId &endpoint)
delivers received Interest to forwarding
PacketCounter nInInterests
count of incoming Interests
FaceUri getLocalUri() const
void sendData(const Data &data, const EndpointId &endpoint)
Send Data to endpoint.
signal::Signal< LinkService, Data > afterSendData
signals on Data sent
PacketCounter nOutNacks
count of outgoing Nacks
std::ostream & operator<<(std::ostream &os, const Face &face)
Copyright (c) 2011-2015 Regents of the University of California.
signal::Signal< LinkService, Interest > afterSendInterest
signals on Interest sent
FaceUri getRemoteUri() const
generalization of a network interface
const Face * getFace() const
#define NFD_LOG_FACE_TRACE(msg)
Log a message at TRACE level.
signal::Signal< LinkService, Interest, EndpointId > afterReceiveInterest
signals on Interest received
signal::Signal< LinkService, Interest > onDroppedInterest
signals on Interest dropped by reliability system for exceeding allowed number of retx
signal::Signal< LinkService, lp::Nack, EndpointId > afterReceiveNack
signals on Nack received
Represents an Interest packet.
void sendNack(const ndn::lp::Nack &nack, const EndpointId &endpoint)
Send Nack to endpoint.
signal::Signal< LinkService, lp::Nack > afterSendNack
signals on Nack sent
Represents a Data packet.
PacketCounter nInData
count of incoming Data packets
PacketCounter nOutData
count of outgoing Data packets
represents a Network Nack
uint64_t EndpointId
Identifies a remote endpoint on the link.
void receiveNack(const lp::Nack &nack, const EndpointId &endpoint)
delivers received Nack to forwarding
For internal use by FaceLogging macros.
The lower half of a Face.
#define NFD_LOG_INIT(name)
PacketCounter nOutInterests
count of outgoing Interests