NNG_HTTP_..._GET_ADDR(3http)
β¨ NNG_HTTP_..._GET_ADDR(3http) β¨
okay bestie, so this is the page for nng_http_server_get_addr from the NNG Reference Manual, section 3http β and no, the ... in the title is not me being dramatic, that's genuinely how the page is named π
πΈ NAME πΈ
nng_http_server_get_addr β literally just get the HTTP server address π
π¦ SYNOPSIS π¦
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
int nng_http_server_get_addr(nng_http_server *server, nng_sockaddr *sap);
like, two includes, one function call, zero chaos. slay π
π DESCRIPTION π
So, nng_http_server_get_addr() β here's the tea:
nng_http_server_get_addr()β this function is used to retrieve annng_sockaddrinto the value referenced bysapfor the serverserver.
That's it, that's the whole vibe. You hand it a server, you hand it a sap, and it fills in the nng_sockaddr that sap points at. main character energy honestly π
π RETURN VALUES π
This function returns 0 on success, and non-zero otherwise. so if you get 0, congrats bestie, you ate. anything else? that's a whole different story π
π₯ ERRORS π₯
NNG_EINVALβ either theserverorsapparameter isNULL. yeah, like, don't do that πNNG_ENOTSUPβ HTTP is not supported. the library said "not me", and honestly? valid π
π«Ά SEE ALSO π«Ά
β quick vibe check:NNG_EINVAL= you passed aNULLin there somewhere,NNG_ENOTSUP= no HTTP for you. no cap, those are the only two listed. periodt.
that's the whole page, bestie β shipped with love from the NNG Reference Manual, dated 2026-01-13, and filed under NNG_HTTP_..._GET_ADDR(3http) π§π« go get those addresses. π
π¦ 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