diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-23 01:50:31 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-23 01:50:31 -0800 |
| commit | 72440b0d815b1b79941f3f58a47ec4df1ba1e0fc (patch) | |
| tree | 6494c69b89f36ab75976fc7acaec68a4d4f0d1bf /src/nng.h | |
| parent | 07478f02caaebf74c11b366d048ba696a8678fec (diff) | |
| download | nng-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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 } |
