summaryrefslogtreecommitdiff
path: root/ref/api
diff options
context:
space:
mode:
authorgdamore <gdamore@users.noreply.github.com>2024-12-26 21:58:31 +0000
committergdamore <gdamore@users.noreply.github.com>2024-12-26 21:58:31 +0000
commit786dd2a243f25182d3b7ee7ae95248b1181b3dff (patch)
treecb7498cdaa27d976302d25810d9ebdbc9efb6259 /ref/api
parent2ca864fb18b81eef944dd91950df28843e0d9964 (diff)
downloadnng-786dd2a243f25182d3b7ee7ae95248b1181b3dff.tar.gz
nng-786dd2a243f25182d3b7ee7ae95248b1181b3dff.tar.bz2
nng-786dd2a243f25182d3b7ee7ae95248b1181b3dff.zip
deploy: 8027aebffe30fefbd320ac1c14866bfe85c1e915
Diffstat (limited to 'ref/api')
-rw-r--r--ref/api/aio.html2
-rw-r--r--ref/api/errors.html1
2 files changed, 2 insertions, 1 deletions
diff --git a/ref/api/aio.html b/ref/api/aio.html
index 4d07546e..944c376b 100644
--- a/ref/api/aio.html
+++ b/ref/api/aio.html
@@ -310,7 +310,7 @@ and returns immediately without waiting. If cancellation was successful,
then <a href="/api/aio.html#result-of-operation"><code>nng_aio_result</code></a> will return <em>err</em>.</p>
<p>The <a name="a009"></a><code>nng_aio_cancel</code> function acts like <code>nng_aio_abort</code>, but uses the error code
<a href="/api/errors.html#NNG_ECANCELED"><code>NNG_ECANCELED</code></a><a name="a010"></a>.</p>
-<p>The <a name="a011"></a><code>nng_aio_stop</code> function aborts the <em>aio</em> operation with <a href="/api/errors.html#NNG_ECANCELED"><code>NNG_ECANCELED</code></a>,
+<p>The <a name="a011"></a><code>nng_aio_stop</code> function aborts the <em>aio</em> operation with [<code>NNG_ESTOPPED</code>],
and then waits the operation and any associated callback to complete.
This function also marks <em>aio</em> itself permanently stopped, so that any
new operations scheduled by I/O providers using <a href="/TODO.html"><code>nng_aio_begin</code></a>
diff --git a/ref/api/errors.html b/ref/api/errors.html
index de9eab7d..980d639b 100644
--- a/ref/api/errors.html
+++ b/ref/api/errors.html
@@ -281,6 +281,7 @@ as in diagnostic messages or log entries.</p>
<tr><td><code>NNG_EAMBIGUOUS</code><a name="NNG_EAMBIGUOUS"></a></td><td>29</td><td>Ambiguous option. The command line option could not be unambiguously resolved. Only used with <a href="/api/cmd_opts.html#parse-command-line-options"><code>nng_opts_parse</code></a>.</td></tr>
<tr><td><code>NNG_EBADTYPE</code><a name="NNG_EBADTYPE"></a></td><td>30</td><td>Incorrect type. A type-specific function was used for an object of the wrong type.</td></tr>
<tr><td><code>NNG_ECONNSHUT</code><a name="NNG_ECONNSHUT"></a></td><td>31</td><td>Connection shutdown. The connection was shut down and cannot be used.</td></tr>
+<tr><td><code>NNG_ESTOPPED</code><a name="NNG_ESTOPPED"></a></td><td>1000</td><td>Operation stopped. The operation was stopped with <a href="/api/aio.html#cancellation"><code>nng_aio_stop</code></a> or [<code>nng_aio_close</code>].</td></tr>
<tr><td><code>NNG_EINTERNAL</code><a name="NNG_EINTERNAL"></a></td><td>1000</td><td>An unidentifier internal error occurred.</td></tr>
<tr><td><code>NNG_ESYSERR</code><a name="NNG_ESYSERR"></a></td><td>0x10000000 - 0x1FFFFFFF</td><td>An unidentified system error occurred. These are errors reported by the operating system.</td></tr>
<tr><td><code>NNG_ETRANERR</code><a name="NNG_ETRANERR"></a></td><td>0x20000000 - 0x2FFFFFFF</td><td>An unidentified transport error occurred.</td></tr>