From 92bf6fd4cccc548e14ae826c1d36851f98378da0 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 27 Dec 2021 23:13:42 -0800 Subject: Bus socket converted to use lmq. This should give significant performance boosts to anyone using this protocol. Buffering on both the send and receive side is supported, with a default buffer size of 16 messages. This should help provide a reasonable default case for most users. While here updated the test for bus to much more complete NUTS style test framework, with increased coverage. --- include/nng/protocol/bus0/bus.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/nng/protocol/bus0/bus.h b/include/nng/protocol/bus0/bus.h index c8c23d84..31167d75 100644 --- a/include/nng/protocol/bus0/bus.h +++ b/include/nng/protocol/bus0/bus.h @@ -1,5 +1,5 @@ // -// Copyright 2018 Staysail Systems, Inc. +// Copyright 2021 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a @@ -27,6 +27,11 @@ NNG_DECL int nng_bus0_open_raw(nng_socket *); #define nng_bus_open_raw nng_bus0_open_raw #endif +#define NNG_BUS0_SELF 0x70 +#define NNG_BUS0_PEER 0x70 +#define NNG_BUS0_SELF_NAME "bus" +#define NNG_BUS0_PEER_NAME "bus" + #ifdef __cplusplus } #endif -- cgit v1.2.3-70-g09d2