From 0ace5d416cd77898b19bc124881aff4f5151f12f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 19 Jan 2020 08:28:37 -0800 Subject: fixes #1151 minor pairv1 optimizations possible We've also finished fleshing out the statistics for pairv1, addressed a possible race around the TTL, and added additional test cases to validate things. We also have tightened up the send logic to ensure we do not send a bad message on the wire (drop the malformed message on the send side). --- include/nng/protocol/pair1/pair.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/nng/protocol/pair1/pair.h b/include/nng/protocol/pair1/pair.h index 85da9d45..b89f3105 100644 --- a/include/nng/protocol/pair1/pair.h +++ b/include/nng/protocol/pair1/pair.h @@ -27,6 +27,10 @@ NNG_DECL int nng_pair1_open_raw(nng_socket *); #endif #define NNG_OPT_PAIR1_POLY "pair1:polyamorous" +#define NNG_PAIR1_SELF 0x11 +#define NNG_PAIR1_PEER 0x11 +#define NNG_PAIR1_SELF_NAME "pair1" +#define NNG_PAIR1_PEER_NAME "pair1" #ifdef __cplusplus } -- cgit v1.2.3-70-g09d2