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

represent a channel that communicates on a local endpoint More...

#include <channel.hpp>

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

Public Member Functions

virtual ~Channel ()
 
const FaceUrigetUri () const
 
virtual bool isListening () const =0
 Returns whether the channel is listening. More...
 
virtual size_t size () const =0
 Returns the number of faces in the channel. More...
 

Protected Member Functions

void setUri (const FaceUri &uri)
 

Detailed Description

represent a channel that communicates on a local endpoint

See also
FaceSystem

A channel can listen on a local endpoint and initiate outgoing connection from a local endpoint. A channel creates Face objects and retains shared ownership of them.

Definition at line 52 of file channel.hpp.

Constructor & Destructor Documentation

nfd::face::Channel::~Channel ( )
virtualdefault

Member Function Documentation

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

Definition at line 59 of file channel.hpp.

References nfd::face::connectFaceClosedSignal(), isListening(), setUri(), and size().

virtual bool nfd::face::Channel::isListening ( ) const
pure virtual

Returns whether the channel is listening.

Implemented in nfd::face::UnixStreamChannel, nfd::face::EthernetChannel, nfd::face::TcpChannel, nfd::face::WebSocketChannel, and nfd::face::UdpChannel.

Referenced by getUri().

virtual size_t nfd::face::Channel::size ( ) const
pure virtual

Returns the number of faces in the channel.

Implemented in nfd::face::UnixStreamChannel, nfd::face::EthernetChannel, nfd::face::TcpChannel, nfd::face::WebSocketChannel, and nfd::face::UdpChannel.

Referenced by getUri().


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