26 #ifndef NFD_DAEMON_FACE_CHANNEL_HPP
27 #define NFD_DAEMON_FACE_CHANNEL_HPP
42 class Channel :
public std::enable_shared_from_this<Channel>, noncopyable
77 setUri(
const FaceUri& uri) noexcept;
84 size_t m_defaultMtu = ndn::MAX_NDN_PACKET_SIZE;
Represents a channel that listens on a local endpoint.
void setUri(const FaceUri &uri) noexcept
size_t getDefaultMtu() const noexcept
Returns the default MTU for all faces created by this channel.
virtual bool isListening() const =0
Returns whether the channel is listening.
virtual size_t size() const =0
Returns the number of faces in the channel.
const FaceUri & getUri() const noexcept
void setDefaultMtu(size_t mtu) noexcept
Generalization of a network interface.
std::function< void(uint32_t status, const std::string &reason)> FaceCreationFailedCallback
Prototype for the callback that is invoked when a face fails to be created.
std::function< void(const shared_ptr< Face > &)> FaceCreatedCallback
Prototype for the callback that is invoked when a face is created (in response to an incoming connect...
void connectFaceClosedSignal(Face &face, std::function< void()> f)
Invokes a callback when a face is closed.