From 3e7507f5908cda4b669bc57293e8395164fcc11a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 28 Dec 2016 22:51:24 -0800 Subject: Define new NNG_ESTATE for dealing with protocol state errors. This error code is set when a cooked mode protocol cannot support an operation yet. For example, it makes no sense to recv() a reply on a REQ socket if no request has been sent yet. --- src/nng.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nng.h') diff --git a/src/nng.h b/src/nng.h index e22df1c6..335094c7 100644 --- a/src/nng.h +++ b/src/nng.h @@ -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. -- cgit v1.2.3-70-g09d2