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
@@ -166,6 +166,9 @@ nng_strerror(int num) case NNG_EADDRINUSE: return ("Address in use"); + case NNG_ESTATE: + return ("Incorrect state"); + default: return ("Unknown error"); } @@ -362,6 +362,7 @@ NNG_DECL int nng_device(nng_socket *, nng_socket *); #define NNG_EAGAIN (-8) #define NNG_ENOTSUP (-9) #define NNG_EADDRINUSE (-10) +#define NNG_ESTATE (-11) // Maximum length of a socket address. This includes the terminating NUL. // This limit is built into other implementations, so do not change it. |
