From 848f8f62d7c6d6ea061dd0513a6bffc1ef358ff3 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 9 Jan 2017 13:01:22 -0800 Subject: 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. --- src/nng.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nng.h') 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 *); // - zero (socket), or transport (8 bits) // - 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) -- cgit v1.2.3-70-g09d2