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
65 setUri(
const FaceUri& uri);
93 #endif // NFD_DAEMON_FACE_CHANNEL_HPP
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.
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...
generalization of a network interface
virtual bool isListening() const =0
Returns whether the channel is listening.
void setUri(const FaceUri &uri)
Represents a channel that listens on a local endpoint.
const FaceUri & getUri() const
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...
virtual size_t size() const =0
Returns the number of faces in the channel.