nanomsg
Home Download Documentation Development Community Support
NOTE: This documentation is for version 0.1-alpha 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_pubsub(7)

SYNOPSIS

#include <nanomsg/nn.h>

#include <nanomsg/pubsub.h>

DESCRIPTION

Broadcasts messages to multiple destinations.

Socket Types

NN_PUB

This socket is used to distribute messages to multiple destinations. Receive operation is not defined.

NN_SUB

Receives messages from the publisher. Only messages that the socket is subscribed to are received. When the socket is created there are no subscriptions and thus no messages will be received. Send operation is not defined on this socket. The socket can be connected to at most one peer.

Socket Options

NN_SUB_SUBSCRIBE

Defined on full SUB socket. Subscribes for a particular topic. Type of the option is string.

NN_SUB_UNSUBSCRIBE

Defined on full SUB socket. Unsubscribes from a particular topic. Type of the option is string.

SEE ALSO

AUTHORS

Martin Sustrik <sustrik@250bpm.com>


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