cnet v4.0.4  

home topology files command‑line options the core API FAQ download and install

cnet's Application Programming Interface

NAME
CNET_get_nodestats - obtain runtime statistics about the current node

SYNOPSIS
#include <cnet.h> typedef struct { int64_t nevents; int64_t nerrors; int64_t msgs_generated; int64_t bytes_generated; int64_t msgs_received; int64_t bytes_received; } CnetNodeStats; int CNET_get_nodestats(CnetNodeStats *stats);

DESCRIPTION
CNET_get_nodestats() provides the current node with statistics about its own execution.

A node's statistics are cleared when the node reboots. The "sum" of each node's statistics form the global node statistics which are reported on the GUI and may be requested with the -s command-line option.

RETURN VALUE
The value 0 is returned on success. On failure, the value -1 is returned, and the global variable cnet_errno is set to one of the following values to describe the error:

ER_BADARG
stats was a NULL pointer.
SEE ALSO
CNET_get_linkstats.

cnet v4.0.4 - [email protected]