NNG_STAT_FIND_LISTENER(3)
β¨ NNG_STAT_FIND_LISTENER(3) β¨
okay so this is a page from the NNG Reference Manual bestie, and it's all about nng_stat_find_listener β the little function that goes digging through your stats tree to find the one that belongs to a specific listener π
πΈ NAME πΈ
nng_stat_find_listener β find listener statistics, literally that's the whole job π
π¦ SYNOPSIS π¦
#include <nng/nng.h>
typedef struct nng_stat nng_stat;
typedef struct nng_listener nng_listener;
nng_stat *nng_stat_find_listener(nng_stat *stat, nng_listener listener);
π DESCRIPTION π
so the way nng_stat_find_listener() works is: you hand it a stats tree (stat) and a listener (listener), and it gives you back the statistics tree inside stat that's associated with that listener β but only if such a tree actually exists, no cap. If it doesn't exist? You get NULL back. that's it, that's the function π
and fr fr, usually the value it returns is gonna have child statistics hanging off it, each one matching some specific metric π. You can go poke around those using either nng_stat_find(3) or by walking the tree yourself with nng_stat_child(3). bestie behavior honestly π«Ά
π RETURN VALUES π
- the matching statistic β¨
- or
NULLif no match is found π (it's giving "she's not here")
π ERRORS π
None. not a single one. iconic, honestly π
π SEE ALSO π
libnng(3)nng_stat_child(3)nng_stat_find(3)nng_stat_find_dialer(3)nng_stat_find_socket(3)nng_stats_get(3)nng_stat(5)nng(7)
and that's the whole page bestie, go forth and find your listener stats π β¨ no notes, periodt π¦πΈ
this was NNG_STAT_FIND_LISTENER(3) from the NNG Reference Manual, dated 2026-06-30 π mwah, bye π«Ά
π¦ 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