nanomsg next generation NNG  
Home GitHub Documentation

This documentation is for version v1.1.0 of nng, but the latest released version is v1.7.3. see the documentation for v1.7.3 for the most up-to-date information.
nng_duration(5)

SYNOPSIS

#include <nng/nng.h>

typedef int32_t nng_duration;

#define NNG_DURATION_INFINITE (-1)
#define NNG_DURATION_DEFAULT  (-2)
#define NNG_DURATION_ZERO     (0)

DESCRIPTION

An nng_duration is a relative time, measured in milliseconds. This type is most often used in conjunction with timers and timeouts.

A couple of special values have been set aside, and carry special meanings.

NNG_DURATION_DEFAULT

Indicates a context-specific default value should be used.

NNG_DURATION_INFINITE

Effectively an infinite duration; used most often to disable timeouts.

NNG_DURATION_ZERO

Zero length duration; used to perform a single polling operation.

NNG Reference Manual vv1.1.0 © 2019 Staysail Systems, Inc, © 2018 Capitar IT Group BV
This document is supplied under the MIT License.
nanomsg™ and nng™ are trademarks of Garrett D'Amore.