diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-10-08 18:58:28 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-10-08 18:58:28 -0700 |
| commit | bdf85dd692d803b7b2fc793f1c7723f9874bfcdb (patch) | |
| tree | 7e89c24535dbbe904c96fab4be7ea99e3faf628a /docs/ref/proto/bus.md | |
| parent | 6b6a5533c65f16f8757c3e271970f51d062aa1aa (diff) | |
| download | nng-bdf85dd692d803b7b2fc793f1c7723f9874bfcdb.tar.gz nng-bdf85dd692d803b7b2fc793f1c7723f9874bfcdb.tar.bz2 nng-bdf85dd692d803b7b2fc793f1c7723f9874bfcdb.zip | |
Numerous link fixups - protocols now use xrefs.md properly.
Diffstat (limited to 'docs/ref/proto/bus.md')
| -rw-r--r-- | docs/ref/proto/bus.md | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/docs/ref/proto/bus.md b/docs/ref/proto/bus.md index aa9d55d5..2a2606b1 100644 --- a/docs/ref/proto/bus.md +++ b/docs/ref/proto/bus.md @@ -28,7 +28,7 @@ message cannot be delivered for any reason it is discarded. ## Socket Operations -The [`nng_bus0_open`][nng_bus_open] functions create a bus socket. +The [`nng_bus0_open`] functions create a bus socket. This socket may be used to send and receive messages. Sending messages will attempt to deliver to each directly connected peer. @@ -44,11 +44,11 @@ The _BUS_ protocol has no protocol-specific options. ## Protocol Headers When using a _BUS_ socket in [raw mode][raw], received messages will -contain the incoming [pipe][pipe] ID as the sole element in the header. +contain the incoming [pipe] ID as the sole element in the header. If a message containing such a header is sent using a raw _BUS_ socket, then, the message will be delivered to all connected pipes _except_ the one identified in the header. -This behavior is intended for use with [device][device] +This behavior is intended for use with [device] configurations consisting of just a single socket. Such configurations are useful in the creation of rebroadcasters, and this capability prevents a message from being routed back to its source. @@ -56,7 +56,4 @@ If no header is present, then a message is sent to all connected pipes. When using normal (cooked mode) _BUS_ sockets, no message headers are present. -[nng_bus_open]: TODO.md -[device]: TODO.md -[pipe]: TODO.md -[raw]: TODO.md +{{#include ../xref.md}} |
