aboutsummaryrefslogtreecommitdiff
path: root/src/nng.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-23 01:50:31 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-23 01:50:31 -0800
commit72440b0d815b1b79941f3f58a47ec4df1ba1e0fc (patch)
tree6494c69b89f36ab75976fc7acaec68a4d4f0d1bf /src/nng.h
parent07478f02caaebf74c11b366d048ba696a8678fec (diff)
downloadnng-72440b0d815b1b79941f3f58a47ec4df1ba1e0fc.tar.gz
nng-72440b0d815b1b79941f3f58a47ec4df1ba1e0fc.tar.bz2
nng-72440b0d815b1b79941f3f58a47ec4df1ba1e0fc.zip
Some tests around recvmsg (no senders yet). Fixes for some edge cases.
Diffstat (limited to 'src/nng.h')
-rw-r--r--src/nng.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nng.h b/src/nng.h
index 6d3296d8..aa2ecd62 100644
--- a/src/nng.h
+++ b/src/nng.h
@@ -193,6 +193,10 @@ NNG_DECL int nng_msg_trunc_header(nng_msg *, size_t);
NNG_DECL int nng_pipe_getopt(nng_pipe *, int, void *, size_t *);
NNG_DECL int nng_pipe_close(nng_pipe *);
+// Flags.
+#define NNG_FLAG_ALLOC 1 // Recv to allocate receive buffer.
+#define NNG_FLAG_NONBLOCK 2 // Non-block send/recv.
+
// Protocol numbers. These are to be used with nng_socket_create().
// These values are used on the wire, so must not be changed. The major
// number of the protocol is shifted left by 4 bits, and a subprotocol is
@@ -349,7 +353,7 @@ NNG_DECL int nng_device(nng_socket *, nng_socket *);
// Default linger time in microseconds. The framework will wait up until
// this long for outgoing message queues to drain before closing underlying
// connections, when closing the socket itself.
-#define NNG_LINGER_DEFAULT (1000000)
+#define NNG_LINGER_DEFAULT (1000000)
#ifdef __cplusplus
}