--- version: v1.3.0 layout: manpage title: nn_get_statistic(3compat) ---
{% if page.version and page.version != site.latest %} {% if page.version == "tip" %} {% include manpage-tip.html %} {% else %} {% include manpage-old.html %} {% endif %} {% endif %}

SYNOPSIS

#include <nanomsg/nn.h>

uint64_t nn_get_statistic(int sock, int stat);

DESCRIPTION

The nn_get_statistic() function exists only as a stub, and always returns zero.

This function is provided for API compatibility with legacy libnanomsg. Consider using the relevant modern API instead.

RETURN VALUES

Zero.

ERRORS

None.