|
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.
26 #ifndef NFD_DAEMON_FACE_LINK_SERVICE_HPP
27 #define NFD_DAEMON_FACE_LINK_SERVICE_HPP
243 doReceivePacket(packet, endpoint);
249 m_transport->
send(packet, endpoint);
256 typename std::enable_if<std::is_base_of<LinkService, T>::value &&
257 !std::is_same<LinkService, T>::value, std::ostream&>::type
260 return os << FaceLogHelper<LinkService>(flh.
obj);
266 #endif // NFD_DAEMON_FACE_LINK_SERVICE_HPP
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
counters provided by LinkService
void receiveInterest(const Interest &interest, const EndpointId &endpoint)
delivers received Interest to forwarding
PacketCounter nInInterests
count of incoming Interests
virtual const Counters & getCounters() const
provides a lightweight signal / event system
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
generalization of a network interface
const Face * getFace() const
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
void send(const Block &packet, const EndpointId &endpoint=0)
Send a link-layer packet.
signal::Signal< LinkService, lp::Nack, EndpointId > afterReceiveNack
signals on Nack received
const Transport * getTransport() const
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 counter of number of packets
Represents a TLV element of NDN packet format.
represents a Network Nack
void sendPacket(const Block &packet, const EndpointId &endpoint)
send a lower-layer packet via Transport to endpoint
uint64_t EndpointId
Identifies a remote endpoint on the link.
void receivePacket(const Block &packet, const EndpointId &endpoint)
performs LinkService specific operations to receive a lower-layer packet
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.
LinkServiceCounters Counters
counters provided by LinkService
PacketCounter nOutInterests
count of outgoing Interests