Represents a channel that listens on a local endpoint. More...
#include <channel.hpp>
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) |
Represents a channel that listens on a local endpoint.
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.
|
virtualdefault |
|
inline |
Definition at line 48 of file channel.hpp.
|
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.
|
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.
|
protected |
Definition at line 35 of file channel.cpp.
Referenced by nfd::face::EthernetChannel::EthernetChannel(), nfd::face::TcpChannel::TcpChannel(), nfd::face::UdpChannel::UdpChannel(), nfd::face::UnixStreamChannel::UnixStreamChannel(), and nfd::face::WebSocketChannel::WebSocketChannel().