diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nng.c | 3 | ||||
| -rw-r--r-- | src/nng.h | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -436,6 +436,9 @@ nng_strerror(int num) case NNG_ECONNABORTED: return ("Connection aborted"); + + case NNG_ECANCELED: + return ("Operation canceled"); } if (num & NNG_ESYSERR) { @@ -423,6 +423,7 @@ NNG_DECL void nng_thread_destroy(void *); #define NNG_EMSGSIZE (17) #define NNG_ECONNABORTED (18) #define NNG_ECONNRESET (19) +#define NNG_ECANCELED (20) // NNG_SYSERR is a special code, which allows us to wrap errors from the // underlyuing operating system. We generally prefer to map errors to one |
