NNG_DIALER_ID(3)
π NAME π
nng_dialer_id β bestie, this one hands you back the numeric dialer identifier, no cap π
β¨ SYNOPSIS β¨
#include <nng/nng.h>
int nng_dialer_id(nng_dialer d);
π¦ DESCRIPTION π¦
okay so picture this: you've got a dialer d, and you just wanna know which one it is. That's literally the whole plot. nng_dialer_id() returns a positive identifier for the dialer d β but only if it's valid. If it's not valid? She gives you -1. That's it, that's the function. π
π Note (important, bestie, listen): A dialer counts as valid if it was ever created with thenng_dialer_create()ornng_dial()functions. If you've got dialers allocated on the stack, or ones that are static, you should initialize them with theNNG_DIALER_INITIALIZERmacro β that way they literally cannot get confused with a valid dialer before they're created properly. no mixed signals, no embarrassing mix-ups, periodt π
πΈ RETURN VALUES πΈ
This function returns the positive value for the dialer identifier, or -1 if the dialer is invalid. That's the vibe check: positive = she's real, -1 = nope π
π ERRORS π
None. Not a single one. Zero drama, we love a low-maintenance function π«Άβ¨
π SEE ALSO π
byeeee bestie, go identify some dialers π from your NNG Reference Manual (NNG_DIALER_ID(3)), dated 2026-06-30 β that's the whole page, go slay βπ§
π¦ 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