diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-03-14 15:19:26 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-03-14 15:19:26 -0700 |
| commit | f4de6b5302df8befbd2b229b701d0bf9ca81a5fb (patch) | |
| tree | 34d5c50b401005fdee814432938077f56b6c82bc /docs/man/nng_duration.adoc | |
| parent | 7092fa31f447d1750dc560cea49052b3e4f57620 (diff) | |
| download | nng-f4de6b5302df8befbd2b229b701d0bf9ca81a5fb.tar.gz nng-f4de6b5302df8befbd2b229b701d0bf9ca81a5fb.tar.bz2 nng-f4de6b5302df8befbd2b229b701d0bf9ca81a5fb.zip | |
Markup changes, started adding type documentation.
Diffstat (limited to 'docs/man/nng_duration.adoc')
| -rw-r--r-- | docs/man/nng_duration.adoc | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/docs/man/nng_duration.adoc b/docs/man/nng_duration.adoc new file mode 100644 index 00000000..e4417609 --- /dev/null +++ b/docs/man/nng_duration.adoc @@ -0,0 +1,49 @@ += nng_duration(5) +// +// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2018 Capitar IT Group BV <info@capitar.com> +// +// This document is supplied under the terms of the MIT License, a +// copy of which should be located in the distribution where this +// file was obtained (LICENSE.txt). A copy of the license may also be +// found online at https://opensource.org/licenses/MIT. +// + +== NAME + +nng_duration - relative time in milliseconds + +== SYNOPSIS + +[source, c] +----------- +#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`))(((duration))) is a relative time, measured in +milliseconds. +This type is most often used in conjuction with timers and timeouts. + +A couple of special values have been set aside, and carry special meanings. + +[[NNG_DURATION_DEFAULT]]((`NNG_DURATION_DEFAULT`))::: +Indicates a context-specific default value should be used. + +[[NNG_DURATION_INFINITE]]((`NNG_DURATION_INFINITE`))::: +Effectively an infinite duration; used most often to disable timeouts. + +[[NNG_DURATION_ZERO]]((`NNG_DURATION_ZERO`))::: +Zero length duration; used to perform a single polling operation. + +== SEE ALSO +[.text-left] +<<nng_options#,nng_options(5)>>, +<<nng#,nng(7)>> |
