This documentation is for the TIP (development tree) of NNG and may represent unreleased changes or functionality that is experimental, and is subject to change before release. The latest released version is v1.8.0. See the documentation for v1.8.0 for the most up-to-date information.

nng_stat_value(3)

NAME

nng_stat_value - get statistic numeric value

SYNOPSIS

#include <nng/nng.h>

typedef struct nng_stat nng_stat;

uint64_t nng_stat_value(nng_stat *stat);

DESCRIPTION

The nng_stat_value() function returns a numeric value for the statistic stat. If the statistic is not of numeric type, then zero is returned. See nng_stat_type() for a description of statistic types.

RETURN VALUES

The numeric value associated with stat.

ERRORS

None.

SEE ALSO