From f4ce5a285167e7656037096f77f04ab80a010453 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 14 Jan 2017 13:00:55 -0800 Subject: Windows TCP now working. There are lots of changes here, mostly stuff we did in support of Windows TCP. However, there are some bugs that were fixed, and we added some new error codes, and generalized the handling of some failures during accept. Windows IPC (NamedPipes) is still missing. --- src/nng.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/nng.h') diff --git a/src/nng.h b/src/nng.h index bf7bfa7b..cba6a596 100644 --- a/src/nng.h +++ b/src/nng.h @@ -38,8 +38,8 @@ extern "C" { #endif // NNG_SHARED_LIB #else #define NNG_DECL extern -#endif // _WIN32 && !NNG_STATIC_LIB -#endif // NNG_DECL +#endif // _WIN32 && !NNG_STATIC_LIB +#endif // NNG_DECL // Types common to nng. typedef struct nng_socket nng_socket; @@ -388,6 +388,9 @@ NNG_DECL int nng_device(nng_socket *, nng_socket *); #define NNG_EUNREACHABLE (14) #define NNG_EADDRINVAL (15) #define NNG_EPERM (16) +#define NNG_EMSGSIZE (17) +#define NNG_ECONNABORTED (18) +#define NNG_ECONNRESET (19) // 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