aboutsummaryrefslogtreecommitdiff
path: root/src/nng.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nng.h')
-rw-r--r--src/nng.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nng.h b/src/nng.h
index d398e18c..e20d3543 100644
--- a/src/nng.h
+++ b/src/nng.h
@@ -429,6 +429,14 @@ NNG_DECL int nng_device(nng_socket_t, nng_socket_t);
#define NNG_ECONNREFUSED (-6)
#define NNG_ECLOSED (-7)
#define NNG_EAGAIN (-8)
+#define NNG_ENOTSUP (-9)
+#define NNG_EADDRINUSE (-10)
+
+/*
+ * Maximum length of a socket address. This includes the terminating NUL.
+ * This limit is built into other implementations, so do not change it.
+ */
+#define NNG_MAXADDRLEN (128)
#ifdef __cplusplus
}