NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::face::LinkService Class Referenceabstract

the upper part of a Face More...

#include <link-service.hpp>

Inheritance diagram for nfd::face::LinkService:
Collaboration diagram for nfd::face::LinkService:

Public Types

typedef LinkServiceCounters Counters
 counters provided by LinkService More...
 

Public Member Functions

 LinkService ()
 
virtual ~LinkService ()
 
void setFaceAndTransport (Face &face, Transport &transport)
 set Face and Transport for LinkService More...
 
const FacegetFace () const
 
const TransportgetTransport () const
 
TransportgetTransport ()
 
virtual const CountersgetCounters () const
 
void sendInterest (const Interest &interest)
 send Interest More...
 
void sendData (const Data &data)
 send Data More...
 
void sendNack (const ndn::lp::Nack &nack)
 send Nack More...
 
void receivePacket (Transport::Packet &&packet)
 performs LinkService specific operations to receive a lower-layer packet More...
 

Public Attributes

signal::Signal< LinkService, InterestafterReceiveInterest
 signals on Interest received More...
 
signal::Signal< LinkService, DataafterReceiveData
 signals on Data received More...
 
signal::Signal< LinkService, lp::NackafterReceiveNack
 signals on Nack received More...
 
signal::Signal< LinkService, InterestafterSendInterest
 signals on Interest sent More...
 
signal::Signal< LinkService, DataafterSendData
 signals on Data sent More...
 
signal::Signal< LinkService, lp::NackafterSendNack
 signals on Nack sent More...
 

Protected Member Functions

void receiveInterest (const Interest &interest)
 delivers received Interest to forwarding More...
 
void receiveData (const Data &data)
 delivers received Data to forwarding More...
 
void receiveNack (const lp::Nack &nack)
 delivers received Nack to forwarding More...
 
void sendPacket (Transport::Packet &&packet)
 sends a lower-layer packet via Transport More...
 

Additional Inherited Members

- Protected Attributes inherited from nfd::face::LinkServiceCounters
PacketCounter nInInterests
 count of incoming Interests More...
 
PacketCounter nOutInterests
 count of outgoing Interests More...
 
PacketCounter nInData
 count of incoming Data More...
 
PacketCounter nOutData
 count of outgoing Data More...
 
PacketCounter nInNacks
 count of incoming Nacks More...
 
PacketCounter nOutNacks
 count of outgoing Nacks More...
 

Detailed Description

the upper part of a Face

See also
Face

Definition at line 73 of file link-service.hpp.

Member Typedef Documentation

counters provided by LinkService

Definition at line 78 of file link-service.hpp.

Constructor & Destructor Documentation

nfd::face::LinkService::LinkService ( )

Definition at line 34 of file link-service.cpp.

nfd::face::LinkService::~LinkService ( )
virtual

Definition at line 40 of file link-service.cpp.

Member Function Documentation

void nfd::face::LinkService::setFaceAndTransport ( Face face,
Transport transport 
)

set Face and Transport for LinkService

Precondition
setFaceAndTransport has not been called

Definition at line 45 of file link-service.cpp.

const Face * nfd::face::LinkService::getFace ( ) const
inline
Returns
Face to which this LinkService is attached

Definition at line 207 of file link-service.hpp.

const Transport * nfd::face::LinkService::getTransport ( ) const
inline
Returns
Transport to which this LinkService is attached

Definition at line 213 of file link-service.hpp.

Referenced by nfd::face::GenericLinkService::setOptions().

Transport * nfd::face::LinkService::getTransport ( )
inline
Returns
Transport to which this LinkService is attached

Definition at line 219 of file link-service.hpp.

const LinkService::Counters & nfd::face::LinkService::getCounters ( ) const
inlinevirtual

Reimplemented in nfd::face::GenericLinkService.

Definition at line 225 of file link-service.hpp.

void nfd::face::LinkService::sendInterest ( const Interest interest)

send Interest

Precondition
setTransport has been called

Definition at line 55 of file link-service.cpp.

References afterSendInterest, NFD_LOG_FACE_TRACE, and nfd::face::LinkServiceCounters::nOutInterests.

void nfd::face::LinkService::sendData ( const Data data)

send Data

Precondition
setTransport has been called

Definition at line 68 of file link-service.cpp.

References afterSendData, NFD_LOG_FACE_TRACE, and nfd::face::LinkServiceCounters::nOutData.

void nfd::face::LinkService::sendNack ( const ndn::lp::Nack nack)

send Nack

Precondition
setTransport has been called

Definition at line 81 of file link-service.cpp.

References afterSendNack, NFD_LOG_FACE_TRACE, and nfd::face::LinkServiceCounters::nOutNacks.

void nfd::face::LinkService::receivePacket ( Transport::Packet &&  packet)
inline

performs LinkService specific operations to receive a lower-layer packet

Definition at line 231 of file link-service.hpp.

Referenced by nfd::face::Transport::receive().

void nfd::face::LinkService::receiveInterest ( const Interest interest)
protected
void nfd::face::LinkService::receiveData ( const Data data)
protected
void nfd::face::LinkService::receiveNack ( const lp::Nack nack)
protected
void nfd::face::LinkService::sendPacket ( Transport::Packet &&  packet)
inlineprotected

sends a lower-layer packet via Transport

Definition at line 237 of file link-service.hpp.

Referenced by nfd::face::GenericLinkService::setOptions().

Member Data Documentation

signal::Signal<LinkService, Interest> nfd::face::LinkService::afterReceiveInterest

signals on Interest received

Definition at line 131 of file link-service.hpp.

Referenced by receiveInterest().

signal::Signal<LinkService, Data> nfd::face::LinkService::afterReceiveData

signals on Data received

Definition at line 135 of file link-service.hpp.

Referenced by receiveData().

signal::Signal<LinkService, lp::Nack> nfd::face::LinkService::afterReceiveNack

signals on Nack received

Definition at line 139 of file link-service.hpp.

Referenced by receiveNack().

signal::Signal<LinkService, Interest> nfd::face::LinkService::afterSendInterest

signals on Interest sent

Definition at line 143 of file link-service.hpp.

Referenced by sendInterest().

signal::Signal<LinkService, Data> nfd::face::LinkService::afterSendData

signals on Data sent

Definition at line 147 of file link-service.hpp.

Referenced by sendData().

signal::Signal<LinkService, lp::Nack> nfd::face::LinkService::afterSendNack

signals on Nack sent

Definition at line 151 of file link-service.hpp.

Referenced by sendNack().


The documentation for this class was generated from the following files: