From 5eae01c44c2daeddb778608cb48f188b48782c2e Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 19 Feb 2017 11:43:14 -0800 Subject: Introduce new NNG_ECANCELED errno. --- src/nng.c | 3 +++ src/nng.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/nng.c b/src/nng.c index 38d259fd..17938d09 100644 --- a/src/nng.c +++ b/src/nng.c @@ -436,6 +436,9 @@ nng_strerror(int num) case NNG_ECONNABORTED: return ("Connection aborted"); + + case NNG_ECANCELED: + return ("Operation canceled"); } if (num & NNG_ESYSERR) { diff --git a/src/nng.h b/src/nng.h index 8b4c33e8..5c1a2322 100644 --- a/src/nng.h +++ b/src/nng.h @@ -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 -- cgit v1.2.3-70-g09d2