#include <nng/nng.h> typedef int32_t nng_duration; #define NNG_DURATION_INFINITE (-1) #define NNG_DURATION_DEFAULT (-2) #define NNG_DURATION_ZERO (0)
|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.3.2. See the documentation for v1.3.2 for the most up-to-date information.|
nng_duration - relative time in milliseconds
nng_duration is a relative time, measured in
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.
Indicates a context-specific default value should be used.
Effectively an infinite duration; used most often to disable timeouts.
Zero length duration; used to perform a single polling operation.