#include <channel.hpp>
Public Types | |
typedef function< void(const shared_ptr< Face > &newFace)> | FaceCreatedCallback |
Prototype for the callback called when face is created (as a response to incoming connection or after connection is established) More... | |
typedef function< void(const std::string &reason)> | ConnectFailedCallback |
Prototype for the callback that is called when face is failed to get created. More... | |
Public Member Functions | |
virtual | ~Channel () |
const FaceUri & | getUri () const |
Protected Member Functions | |
void | setUri (const FaceUri &uri) |
Definition at line 34 of file channel.hpp.
typedef function<void(const shared_ptr<Face>& newFace)> nfd::Channel::FaceCreatedCallback |
Prototype for the callback called when face is created (as a response to incoming connection or after connection is established)
Definition at line 41 of file channel.hpp.
typedef function<void(const std::string& reason)> nfd::Channel::ConnectFailedCallback |
Prototype for the callback that is called when face is failed to get created.
Definition at line 46 of file channel.hpp.
|
virtual |
Definition at line 29 of file channel.cpp.
|
inline |
Definition at line 63 of file channel.hpp.
|
protected |
Definition at line 34 of file channel.cpp.
Referenced by nfd::TcpChannel::TcpChannel(), nfd::UdpChannel::UdpChannel(), nfd::UnixStreamChannel::UnixStreamChannel(), and nfd::WebSocketChannel::WebSocketChannel().