NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: 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

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.

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

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

Referenced by nfd::WebSocketChannel::WebSocketChannel().

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

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