aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-26 10:20:33 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-26 10:52:17 -0800
commit06ebeefb102b223ff77dd47e16b64bd9575f7c34 (patch)
treecf5d70cadfd2f7261bb5fd6443d2c449d1c1e812 /include
parentd02a320cffc82de8437c28869355a403069b3b21 (diff)
downloadnng-06ebeefb102b223ff77dd47e16b64bd9575f7c34.tar.gz
nng-06ebeefb102b223ff77dd47e16b64bd9575f7c34.tar.bz2
nng-06ebeefb102b223ff77dd47e16b64bd9575f7c34.zip
aio: introduce NNG_ESTOPPED
This error code results when an AIO is stopped permanently, as a result of nni_aio_close or nni_aio_stop. The associated AIO object cannot be used again. This discrimantes against a file being closed, or a temporary cancellation which might allow the aio to be reused. Consumers must check for this error status in their callbacks, and not resubmit an operation that failed with this error. Doing so, will result in an infinite loop of submit / errors.
Diffstat (limited to 'include')
-rw-r--r--include/nng/nng.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/nng/nng.h b/include/nng/nng.h
index 4d21287c..2563bc1e 100644
--- a/include/nng/nng.h
+++ b/include/nng/nng.h
@@ -1078,6 +1078,7 @@ enum nng_errno_enum {
NNG_EAMBIGUOUS = 29,
NNG_EBADTYPE = 30,
NNG_ECONNSHUT = 31,
+ NNG_ESTOPPED = 999,
NNG_EINTERNAL = 1000,
NNG_ESYSERR = 0x10000000,
NNG_ETRANERR = 0x20000000