aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-02-19 11:43:14 -0800
committerGarrett D'Amore <garrett@damore.org>2017-02-19 11:43:14 -0800
commit5eae01c44c2daeddb778608cb48f188b48782c2e (patch)
treeff27fe95f9656611176a331635f484f8818ecb6d /src
parent2944f3a2634876e543003fabb05cba1b178df6aa (diff)
downloadnng-5eae01c44c2daeddb778608cb48f188b48782c2e.tar.gz
nng-5eae01c44c2daeddb778608cb48f188b48782c2e.tar.bz2
nng-5eae01c44c2daeddb778608cb48f188b48782c2e.zip
Introduce new NNG_ECANCELED errno.
Diffstat (limited to 'src')
-rw-r--r--src/nng.c3
-rw-r--r--src/nng.h1
2 files changed, 4 insertions, 0 deletions
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