diff options
| author | gdamore <gdamore@users.noreply.github.com> | 2025-01-02 15:50:13 +0000 |
|---|---|---|
| committer | gdamore <gdamore@users.noreply.github.com> | 2025-01-02 15:50:13 +0000 |
| commit | 2bd762d472334c6cd612ff0c57bb87718254ff8c (patch) | |
| tree | bbedd3c9a51060197c513bb8591a49c46de31b1f /ref/print.html | |
| parent | 730fed9ef9e0e31d2decdab1878d51e186589667 (diff) | |
| download | nng-2bd762d472334c6cd612ff0c57bb87718254ff8c.tar.gz nng-2bd762d472334c6cd612ff0c57bb87718254ff8c.tar.bz2 nng-2bd762d472334c6cd612ff0c57bb87718254ff8c.zip | |
deploy: 288c9bf6dfc333b5a4d894b24e54e4fb3da34d51
Diffstat (limited to 'ref/print.html')
| -rw-r--r-- | ref/print.html | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/ref/print.html b/ref/print.html index fdd97505..c3fe92e9 100644 --- a/ref/print.html +++ b/ref/print.html @@ -1418,13 +1418,13 @@ for an underlying transport, the option should be set on the <a href="api//TODO. <h3 id="common-options"><a class="header" href="#common-options">Common Options</a></h3> <p>The following options are available for many protocols, and always use the same types and semantics described below.</p> <div class="table-wrapper"><table><thead><tr><th>Option</th><th>Type</th><th>Description</th></tr></thead><tbody> -<tr><td><code>NNG_OPT_MAXTTL</code><a name="NNG_OPT_MAXTTL"></a></td><td><code>int</code></td><td>Maximum number of traversals across an <a href="api//TODO.html"><code>nng_device</code></a> device.</td></tr> +<tr><td><code>NNG_OPT_MAXTTL</code><a name="NNG_OPT_MAXTTL"></a></td><td><code>int</code></td><td>Maximum number of traversals across an <a href="api//TODO.html"><code>nng_device</code></a> device, to prevent forwarding loops. May be 1-255, inclusive. Normally defaults to 8.</td></tr> <tr><td><code>NNG_OPT_RECONNMAXT</code><a name="NNG_OPT_RECONNMAXT"></a></td><td><code>nng_duration</code></td><td>Maximum time <a href="api//TODO.html">dialers</a> will delay before trying after failing to connect.</td></tr> <tr><td><code>NNG_OPT_RECONNMINT</code><a name="NNG_OPT_RECONNMINT"></a></td><td><code>nng_duration</code></td><td>Minimum time <a href="api//TODO.html">dialers</a> will delay before trying after failing to connect.</td></tr> -<tr><td><code>NNG_OPT_RECVBUF</code><a name="NNG_OPT_RECVBUF"></a></td><td><code>int</code></td><td>Maximum number of messages to buffer locally when receiving.</td></tr> -<tr><td><code>NNG_OPT_RECVMAXSZ</code><a name="NNG_OPT_RECVMAXSZ"></a></td><td><code>size_t</code></td><td>Maximum message size acceptable for receiving. Can be tuned independently on <a href="api//TODO.html">dialers</a> and <a href="api//TODO.html">listeners</a>.</td></tr> +<tr><td><code>NNG_OPT_RECVBUF</code><a name="NNG_OPT_RECVBUF"></a></td><td><code>int</code></td><td>Maximum number of messages (0-8192) to buffer locally when receiving.</td></tr> +<tr><td><code>NNG_OPT_RECVMAXSZ</code><a name="NNG_OPT_RECVMAXSZ"></a></td><td><code>size_t</code></td><td>Maximum message size acceptable for receiving. Zero means unlimited. Intended to prevent remote abuse. Can be tuned independently on <a href="api//TODO.html">dialers</a> and <a href="api//TODO.html">listeners</a>.</td></tr> <tr><td><code>NNG_OPT_RECVTIMEO</code><a name="NNG_OPT_RECVTIMEO"></a></td><td><code>nng_duration</code></td><td>Default timeout (ms) for receiving messages.</td></tr> -<tr><td><code>NNG_OPT_SENDBUF</code><a name="NNG_OPT_SENDBUF"></a></td><td><code>int</code></td><td>Maximum number of messages to buffer when sending messages.</td></tr> +<tr><td><code>NNG_OPT_SENDBUF</code><a name="NNG_OPT_SENDBUF"></a></td><td><code>int</code></td><td>Maximum number of messages (0-8192) to buffer when sending messages.</td></tr> <tr><td><code>NNG_OPT_SENDTIMEO</code><a name="NNG_OPT_SENDTIMEO"></a></td><td><code>nng_duration</code></td><td>Default timeout (ms) for sending messages.</td></tr> </tbody></table> </div> @@ -6543,13 +6543,11 @@ be specified as <code>udp://[::1]:8001</code>.</p> <p>The special value of 0 (<a name="a007"></a><code>INADDR_ANY</code>) 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 (<code>*</code>) 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:</p> <ol> <li><code>udp://0.0.0.0:9999</code></li> -<li><code>udp://*:9999</code></li> <li><code>udp://:9999</code></li> </ol> <h2 id="socket-address-3"><a class="header" href="#socket-address-3">Socket Address</a></h2> |
