26 #ifndef NFD_DAEMON_FACE_CHANNEL_HPP
27 #define NFD_DAEMON_FACE_CHANNEL_HPP
41 class Channel :
public std::enable_shared_from_this<Channel>, noncopyable
73 setUri(
const FaceUri& uri);
80 size_t m_defaultMtu = ndn::MAX_NDN_PACKET_SIZE;
Represents a channel that listens on a local endpoint.
size_t getDefaultMtu() const
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.
void setUri(const FaceUri &uri)
const FaceUri & getUri() const
void setDefaultMtu(size_t mtu)
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.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents,...