From 72440b0d815b1b79941f3f58a47ec4df1ba1e0fc Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 23 Dec 2016 01:50:31 -0800 Subject: Some tests around recvmsg (no senders yet). Fixes for some edge cases. --- src/nng.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/nng.h') 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 } -- cgit v1.2.3-70-g09d2