NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 FaceUri & getUri () const
 

Protected Member Functions

void setUri (const FaceUri &uri)
 

Detailed Description

Definition at line 32 of file channel.hpp.

Member Typedef Documentation

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 44 of file channel.hpp.

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 39 of file channel.hpp.

Constructor & Destructor Documentation

nfd::Channel::~Channel ( )
virtual

Definition at line 29 of file channel.cpp.

Member Function Documentation

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

Definition at line 61 of file channel.hpp.

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

Definition at line 34 of file channel.cpp.


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