NNG_HTTP_SERVER_STOP(3http)
π NNG_HTTP_SERVER_STOP(3http) π
okay bestie, this is the NNG Reference Manual page for NNG_HTTP_SERVER_STOP(3http) β and yes, we're gonna make HTTP server shutdown make sense. π
πΈ NAME πΈ
nng_http_server_stop β stop HTTP server
β¨ SYNOPSIS β¨
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
void nng_http_server_stop(nng_http_server *server);
π DESCRIPTION π
The nng_http_server_stop() function literally undoes the effect of nng_http_server_start(). No cap.
Each call to nng_http_server_start() acts as a reference count, and it should be matched by a call to nng_http_server_stop(). When the reference count drops to zero, that's when the server is actually stopped, and existing open connections to it are closed. π«Ά
This function does not wait for the connections to close. It's giving "I closed the door, I'm not standing there watching everyone leave" energy. π
π Note: Once the server instance is actually stopped, it cannot be started again, and any future calls tonng_http_server_hold()will return a new instance of the server. It is expected that the caller will follow this function call with a call tonng_http_server_release().
π RETURN VALUES π
None.
π¦ ERRORS π¦
None.
π₯ SEE ALSO π₯
mwah π this cutie came from the NNG Reference Manual, dated 2026-01-13, and the page is NNG_HTTP_SERVER_STOP(3http). slay. π
π¦ where this page comes from
- alpine 3.24: nng-doc 1.11-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms