nfd::face::Channel Class Referenceabstract

Represents a channel that listens on a local endpoint. More...

#include <daemon/face/channel.hpp>

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

Public Member Functions

virtual ~Channel ()
const FaceUri & getUri () 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

Represents a channel that listens on a local endpoint.

See also

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

Constructor & Destructor Documentation

◆ ~Channel()

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

Member Function Documentation

◆ getUri()

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

Definition at line 48 of file channel.hpp.

◆ isListening()

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

◆ setUri()

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

Definition at line 35 of file channel.cpp.

◆ size()

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