nanomsg
Home Download Documentation Development Community Support
NOTE: This documentation is for version 0.6-beta of nanomsg, but the latest released version is 1.1.5. Please see the documentation for 1.1.5 for the most up-to-date information.
nn_bus(7)

SYNOPSIS

#include <nanomsg/nn.h>

#include <nanomsg/bus.h>

DESCRIPTION

Broadcasts messages from any node to all other nodes in the topology. The socket should never receives messages that it sent itself.

This pattern scales only to local level (within a single machine or within a single LAN). Trying to scale it further can result in overloading individual nodes with messages.

Warning
For bus topology to function correctly, user is responsible for ensuring that path from each node to any other node exists within the topology.

Raw (AF_SP_RAW) BUS socket never sends the message to the peer it was received from.

Socket Types

NN_BUS

Sent messages are distributed to all nodes in the topology. Incoming messages from all other nodes in the topology are fair-queued in the socket.

Socket Options

There are no options defined at the moment.

SEE ALSO

AUTHORS

Martin Sustrik <sustrik@250bpm.com>


"nanomsg" is a trademark of Garrett D'Amore.