NNG_STAT_FIND_LISTENER(3)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

✨ 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 NULL if no match is found 😭 (it's giving "she's not here")

πŸŽ€ ERRORS πŸŽ€

None. not a single one. iconic, honestly πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ


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