Represents a channel that listens on a local endpoint. More...
#include <daemon/face/channel.hpp>
Public Member Functions | |
virtual | ~Channel () |
size_t | getDefaultMtu () const noexcept |
Returns the default MTU for all faces created by this channel. More... | |
const FaceUri & | getUri () const noexcept |
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 | setDefaultMtu (size_t mtu) noexcept |
void | setUri (const FaceUri &uri) noexcept |
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 42 of file channel.hpp.
|
virtualdefault |
|
inlinenoexcept |
Returns the default MTU for all faces created by this channel.
Definition at line 58 of file channel.hpp.
|
inlinenoexcept |
Definition at line 49 of file channel.hpp.
|
pure virtual |
Returns whether the channel is listening.
Implemented in nfd::face::WebSocketChannel, nfd::face::UnixStreamChannel, nfd::face::UdpChannel, nfd::face::TcpChannel, and nfd::face::EthernetChannel.
|
protectednoexcept |
Definition at line 40 of file channel.cpp.
|
protectednoexcept |
Definition at line 34 of file channel.cpp.
|
pure virtual |
Returns the number of faces in the channel.
Implemented in nfd::face::WebSocketChannel, nfd::face::UnixStreamChannel, nfd::face::UdpChannel, nfd::face::TcpChannel, and nfd::face::EthernetChannel.