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.
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.
AUTHORS
Martin Sustrik <sustrik@250bpm.com>