diff options
| author | Garrett D'Amore <garrett@damore.org> | 2021-12-27 23:13:42 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2021-12-27 23:13:42 -0800 |
| commit | 92bf6fd4cccc548e14ae826c1d36851f98378da0 (patch) | |
| tree | ca3d35f130e7ec6e51ede51142cc34c5f73ff6ca /include | |
| parent | 2fbfd7e5c3ad245de2c905720eb8d9d5b27b6739 (diff) | |
| download | nng-92bf6fd4cccc548e14ae826c1d36851f98378da0.tar.gz nng-92bf6fd4cccc548e14ae826c1d36851f98378da0.tar.bz2 nng-92bf6fd4cccc548e14ae826c1d36851f98378da0.zip | |
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.
Diffstat (limited to 'include')
| -rw-r--r-- | include/nng/protocol/bus0/bus.h | 7 |
1 files changed, 6 insertions, 1 deletions
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. <info@staysail.tech> +// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // // 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 |
