#include <nng/nng.h> #include <nng/supplemental/http/http.h> void nng_http_server_stop(nng_http_server *server);
|This documentation is for the TIP (development tree) of NNG and may represent unreleased changes or functionality that is experimental, and is subject to change before release. The latest released version is v1.3.2. See the documentation for v1.3.2 for the most up-to-date information.|
nng_http_server_stop - stop HTTP server
nng_http_server_stop() undoes the effect of
Each call by
nng_http_server_start() acts as reference
count, and should be matched by a call to
When the reference count drops to zero, then the server is actually stopped,
and existing open connections to it are closed.
This function does not wait for the connections to close.