#include <nng/nng.h>
typedef int32_t nng_duration;
#define NNG_DURATION_INFINITE (-1)
#define NNG_DURATION_DEFAULT (-2)
#define NNG_DURATION_ZERO (0)
--- version: tip layout: manpage_v2 title: nng_duration(5) ---
nng_duration - relative time in milliseconds
#include <nng/nng.h>
typedef int32_t nng_duration;
#define NNG_DURATION_INFINITE (-1)
#define NNG_DURATION_DEFAULT (-2)
#define NNG_DURATION_ZERO (0)
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_DEFAULTIndicates a context-specific default value should be used.
NNG_DURATION_INFINITEEffectively an infinite duration; used most often to disable timeouts.
NNG_DURATION_ZEROZero length duration; used to perform a single polling operation.