diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-02-19 11:43:14 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-02-19 11:43:14 -0800 |
| commit | 5eae01c44c2daeddb778608cb48f188b48782c2e (patch) | |
| tree | ff27fe95f9656611176a331635f484f8818ecb6d /src | |
| parent | 2944f3a2634876e543003fabb05cba1b178df6aa (diff) | |
| download | nng-5eae01c44c2daeddb778608cb48f188b48782c2e.tar.gz nng-5eae01c44c2daeddb778608cb48f188b48782c2e.tar.bz2 nng-5eae01c44c2daeddb778608cb48f188b48782c2e.zip | |
Introduce new NNG_ECANCELED errno.
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 |
