template<typename UvStreamType, typename StreamType>
class uvco::StreamServerBase< UvStreamType, StreamType >
Not for use in user code; base class for e.g. UnixServer and TcpServer.
Because accepting connections looks the same for Unix and TCP servers, the behavior is defined here and shared by both. However, the implementation must be generic over the stream type, so the actual stream type is a template parameter.
template<typename UvStreamType, typename StreamType>
Close server and stop accepting client connections. As opposed to many other close() methods, it's synchronous, and therefore needs not be called, as the destructor calls it.
Internally it makes use of the quasi-sync behavior of closeHandle(), making it actually more robust than a coroutine (against dropping etc.)
125 {
128
129
130
131
132
134 }
136
137
139 }
140}
bool isClosed(const Handle *h)
Definition close.h:19
void closeHandle(Handle *handle, void(*closer)(CloserArg *, void(*)(uv_handle_t *)))
Definition close.h:37
Into * getData(const Handle *handle)
Obtain data pointer set on handle with nullptr check and type cast.
Definition internal_utils.h:42
bool dataIsNull(Handle *handle)
Check if handle data is null.
Definition internal_utils.h:101