24 static void init(uv_loop_t * , UvStreamType * ) {
25 BOOST_ASSERT_MSG(
false,
"UvStreamInit not specialized for this type");
AddressHandle is a light-weight wrapper around a struct / sockaddr_in(6), and is therefore cheap to c...
Definition name_resolution.h:32
Definition multipromise.h:127
StreamServerBase(StreamServerBase &&)=default
StreamServerBase & operator=(StreamServerBase &&)=default
std::unique_ptr< UvStreamType > socket_
Definition stream_server_base.h:66
AddressHandle getSockname() const
Get the address the server is bound to.
Definition stream_server_base_impl.cc:193
MultiPromise< StreamType > listen(int backlog=128)
Definition stream_server_base_impl.cc:144
StreamServerBase(const StreamServerBase &)=delete
StreamServerBase(std::unique_ptr< UvStreamType > socket)
Definition stream_server_base.h:64
StreamServerBase & operator=(const StreamServerBase &)=delete
static void onNewConnection(uv_stream_t *stream, uv_status status)
Called by libuv when a new connection arrives.
Definition stream_server_base_impl.cc:88
~StreamServerBase()
Definition stream_server_base_impl.cc:119
void close()
Definition stream_server_base_impl.cc:125
int uv_status
Result of a libuv operation, an errno error code.
Definition internal_utils.h:22
Definition async_work.cc:18
Definition stream_server_base_impl.cc:32
Definition stream_server_base.h:23
static void init(uv_loop_t *, UvStreamType *)
Definition stream_server_base.h:24