26 #ifndef NFD_DAEMON_FACE_UNIX_STREAM_CHANNEL_HPP 27 #define NFD_DAEMON_FACE_UNIX_STREAM_CHANNEL_HPP 33 namespace unix_stream {
34 typedef boost::asio::local::stream_protocol::endpoint
Endpoint;
51 class Error :
public std::runtime_error
56 :
std::runtime_error(what)
75 return m_acceptor.is_open();
102 int backlog = boost::asio::local::stream_protocol::acceptor::max_connections);
110 handleAccept(
const boost::system::error_code& error,
116 boost::asio::local::stream_protocol::acceptor m_acceptor;
117 boost::asio::local::stream_protocol::socket m_socket;
124 #endif // NFD_DAEMON_FACE_UNIX_STREAM_CHANNEL_HPP size_t size() const override
Returns the number of faces in the channel.
Error(const std::string &what)
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
UnixStreamChannel-related error.
function< void(uint32_t status, const std::string &reason)> FaceCreationFailedCallback
Prototype for the callback that is invoked when a face fails to be created.
represent a channel that communicates on a local endpoint
bool isListening() const override
Returns whether the channel is listening.
Class implementing a local channel to create faces.
boost::asio::local::stream_protocol::endpoint Endpoint
function< void(const shared_ptr< Face > &newFace)> FaceCreatedCallback
Prototype for the callback that is invoked when a face is created (in response to an incoming connect...