From 34ceda3c2dd4990d15e0341e86861dd291003f63 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 10 Aug 2017 16:33:09 -0700 Subject: Add new PAIR_V1 protocol. The PAIR_V1 protocol supports both raw and cooked modes, and has loop prevention included. It also has a polyamorous mode, wherein it allows multiple connections to be established. In polyamorous mode (set by an option), the sender requests a paritcular pipe by setting it on the message. We default to PAIR_V1 now. --- src/nng_compat.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nng_compat.h') diff --git a/src/nng_compat.h b/src/nng_compat.h index e83c20b8..76494b5c 100644 --- a/src/nng_compat.h +++ b/src/nng_compat.h @@ -72,6 +72,8 @@ extern "C" { #define NN_PROTO_BUS 7 #define NN_PAIR (NN_PROTO_PAIR * 16 + 0) +#define NN_PAIR_v0 (NN_PROTO_PAIR * 16 + 0) +#define NN_PAIR_V1 (NN_PROTO_PAIR * 16 + 1) #define NN_PUB (NN_PROTO_PUBSUB * 16 + 0) #define NN_SUB (NN_PROTO_PUBSUB * 16 + 1) #define NN_REQ (NN_PROTO_REQREP * 16 + 0) -- cgit v1.2.3-70-g09d2