summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-01-19 08:28:37 -0800
committerGarrett D'Amore <garrett@damore.org>2020-01-19 08:28:37 -0800
commit0ace5d416cd77898b19bc124881aff4f5151f12f (patch)
tree2487eb7ade1603e5131b891dc9f5140bbe751d13 /include
parent0242199ddc95e8a683304897a3e1bc26c7e74c0f (diff)
downloadnng-0ace5d416cd77898b19bc124881aff4f5151f12f.tar.gz
nng-0ace5d416cd77898b19bc124881aff4f5151f12f.tar.bz2
nng-0ace5d416cd77898b19bc124881aff4f5151f12f.zip
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).
Diffstat (limited to 'include')
-rw-r--r--include/nng/protocol/pair1/pair.h4
1 files changed, 4 insertions, 0 deletions
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
}