NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::Channel Class Reference

#include <channel.hpp>

Inheritance diagram for nfd::Channel:
Collaboration diagram for nfd::Channel:

Public Types

typedef function< void(const shared_ptr< Face > &newFace)> FaceCreatedCallback
 Prototype for the callback called when face is created (as a response to incoming connection or after connection is established) More...
 
typedef function< void(const std::string &reason)> ConnectFailedCallback
 Prototype for the callback that is called when face is failed to get created. More...
 

Public Member Functions

virtual ~Channel ()
 
const FaceUrigetUri () const
 

Protected Member Functions

void setUri (const FaceUri &uri)
 

Detailed Description

Definition at line 34 of file channel.hpp.

Member Typedef Documentation

◆ FaceCreatedCallback

typedef function<void(const shared_ptr<Face>& newFace)> nfd::Channel::FaceCreatedCallback

Prototype for the callback called when face is created (as a response to incoming connection or after connection is established)

Definition at line 41 of file channel.hpp.

◆ ConnectFailedCallback

typedef function<void(const std::string& reason)> nfd::Channel::ConnectFailedCallback

Prototype for the callback that is called when face is failed to get created.

Definition at line 46 of file channel.hpp.

Constructor & Destructor Documentation

◆ ~Channel()

nfd::Channel::~Channel ( )
virtual

Definition at line 29 of file channel.cpp.

Member Function Documentation

◆ getUri()

const FaceUri & nfd::Channel::getUri ( ) const
inline

Definition at line 63 of file channel.hpp.

◆ setUri()

void nfd::Channel::setUri ( const FaceUri uri)
protected

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