#include <nng/nng.h>
typedef struct nng_stat nng_stat;
uint64_t nng_stat_value(nng_stat *stat);
--- version: v1.3.2 layout: manpage_v2 ---
nng_stat_value - get statistic value
#include <nng/nng.h>
typedef struct nng_stat nng_stat;
uint64_t nng_stat_value(nng_stat *stat);
The nng_stat_value() function returns a numeric value for the statistic stat.
If the statistic has a boolean value, then zero is returned for false, and
one is returned for true.
Otherwise, if the statistic is not of numeric type, then zero is returned.
See nng_stat_type() for a description of statistic types.
The numeric or boolean value associated with stat.
None.