NNG_TLS_CONFIG_HOLD(3tls)
π NAME π
nng_tls_config_hold β hold a TLS configuration object (yes bestie, this is the NNG Reference Manual page for it, section 3tls, we're home π β¨)
πΈ SYNOPSIS πΈ
#include <nng/nng.h>
#include <nng/supplemental/tls/tls.h>
void nng_tls_config_alloc(nng_tls_config *cfg);
ok so real talk, that synopsis is exactly what's printed on the page βnng_tls_config_alloc, nothold. Not me editing the sacred text tho π I'm just showing you what's there, character for character. π«Ά
β¨ DESCRIPTION β¨
So the whole vibe of nng_tls_config_hold() is: it bumps the reference count on the configuration object that cfg points at. Why do we care? Because that means nobody can free it while you're still using it. It's the group-chat equivalent of "don't leave yet, I'm still typing" π
And when you're done holding it? You let go with nng_tls_config_free(). That's the release. π
Also β and this is the good part β you can stack up multiple holds on the same configuration object. It does not get freed until the last hold is released. Like, everyone has to leave the party before the lights go off, no cap. π₯
π¦ RETURN VALUES π¦
None. Zero. Nada. It gives you nothing back and honestly? That's on brand. π
π ERRORS π
None. Not a single one. It cannot fail you. Iconic behaviour fr fr. π
π SEE ALSO π
and that's the whole page, bestie, go hold something π
this beauty lives in the NNG Reference Manual, dated 2026-06-30 β mwah, she ate, periodt β¨ππ¦
π¦ where this page comes from
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms