From 2bd762d472334c6cd612ff0c57bb87718254ff8c Mon Sep 17 00:00:00 2001
From: gdamore The following options are available for many protocols, and always use the same types and semantics described below.
-Option Type Description
+NNG_OPT_MAXTTLintMaximum number of traversals across an nng_device device.NNG_OPT_MAXTTLintMaximum number of traversals across an nng_device device, to prevent forwarding loops. May be 1-255, inclusive. Normally defaults to 8.NNG_OPT_RECONNMAXTnng_durationMaximum time dialers will delay before trying after failing to connect.
-NNG_OPT_RECONNMINTnng_durationMinimum time dialers will delay before trying after failing to connect.
-NNG_OPT_RECVBUFintMaximum number of messages to buffer locally when receiving.
+NNG_OPT_RECVMAXSZsize_tMaximum message size acceptable for receiving. Can be tuned independently on dialers and listeners.
+NNG_OPT_RECVBUFintMaximum number of messages (0-8192) to buffer locally when receiving. NNG_OPT_RECVMAXSZsize_tMaximum message size acceptable for receiving. Zero means unlimited. Intended to prevent remote abuse. Can be tuned independently on dialers and listeners.
-NNG_OPT_RECVTIMEOnng_durationDefault timeout (ms) for receiving messages.
+NNG_OPT_SENDBUFintMaximum number of messages to buffer when sending messages. NNG_OPT_SENDBUFintMaximum number of messages (0-8192) to buffer when sending messages. NNG_OPT_SENDTIMEOnng_durationDefault timeout (ms) for sending messages. udp://[::1]:8001.
The special value of 0 (INADDR_ANY)
can be used for a listener to indicate that it should listen on all
interfaces on the host.
-A short-hand for this form is to either omit the address, or specify
-the asterisk (*) character.
-For example, the following three URIs are all equivalent,
+A short-hand for this form is to omit the IP address entirely.
+For example, the following two URIs are equivalent,
and could be used to listen to port 9999 on the host:
udp://0.0.0.0:9999udp://*:9999udp://:9999