aboutsummaryrefslogtreecommitdiff
path: root/src/nng.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-09 13:01:22 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-09 13:01:22 -0800
commit848f8f62d7c6d6ea061dd0513a6bffc1ef358ff3 (patch)
tree24a31a22803355a4a85293cb35c066b32c651b58 /src/nng.h
parent02231e715c4cb67d3394ee363a758f6b3e6b53b8 (diff)
downloadnng-848f8f62d7c6d6ea061dd0513a6bffc1ef358ff3.tar.gz
nng-848f8f62d7c6d6ea061dd0513a6bffc1ef358ff3.tar.bz2
nng-848f8f62d7c6d6ea061dd0513a6bffc1ef358ff3.zip
Add survey test (and fix survey pattern).
As part of this, we've added a way to unblock callers in a message queue with an error, even without a signal channel. This was necessary to interrupt blockers upon survey timeout. They will get NNG_ETIMEDOUT, but afterwards callers get NNG_ESTATE.
Diffstat (limited to 'src/nng.h')
-rw-r--r--src/nng.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nng.h b/src/nng.h
index e535c9d4..932c9a59 100644
--- a/src/nng.h
+++ b/src/nng.h
@@ -254,7 +254,7 @@ NNG_DECL int nng_pipe_close(nng_pipe *);
// <type> - zero (socket), or transport (8 bits)
// <code> - specific value (16 bits)
#define NNG_OPT_SOCKET(c) (c)
-#define NNG_OPT_TRANSPORT_OPT(t, c) (0x10000 | ((p) << 16) | (c))
+#define NNG_OPT_TRANSPORT_OPT(t, c) (0x10000 | ((t) << 16) | (c))
#define NNG_OPT_RAW NNG_OPT_SOCKET(0)
#define NNG_OPT_LINGER NNG_OPT_SOCKET(1)