Commit ed680a39 authored by Martin Sustrik's avatar Martin Sustrik

Documentation for XPUB and XSUB socket added

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 9f4d3767
...@@ -80,7 +80,6 @@ messages are not discarded. ...@@ -80,7 +80,6 @@ messages are not discarded.
[horizontal] [horizontal]
.Summary of ZMQ_REQ characteristics .Summary of ZMQ_REQ characteristics
Compatible peer sockets:: 'ZMQ_REP' Compatible peer sockets:: 'ZMQ_REP'
Direction:: Bidirectional
Send/receive pattern:: Send, Receive, Send, Receive, ... Send/receive pattern:: Send, Receive, Send, Receive, ...
Outgoing routing strategy:: Load-balanced Outgoing routing strategy:: Load-balanced
Incoming routing strategy:: Last peer Incoming routing strategy:: Last peer
...@@ -103,7 +102,6 @@ question shall be dropped until the exceptional state ends. ...@@ -103,7 +102,6 @@ question shall be dropped until the exceptional state ends.
[horizontal] [horizontal]
.Summary of ZMQ_REP characteristics .Summary of ZMQ_REP characteristics
Compatible peer sockets:: 'ZMQ_REQ' Compatible peer sockets:: 'ZMQ_REQ'
Direction:: Bidirectional
Send/receive pattern:: Receive, Send, Receive, Send, ... Send/receive pattern:: Receive, Send, Receive, Send, ...
Incoming routing strategy:: Fair-queued Incoming routing strategy:: Fair-queued
Outgoing routing strategy:: Last peer Outgoing routing strategy:: Last peer
...@@ -129,7 +127,6 @@ _body parts_. ...@@ -129,7 +127,6 @@ _body parts_.
[horizontal] [horizontal]
.Summary of ZMQ_XREQ characteristics .Summary of ZMQ_XREQ characteristics
Compatible peer sockets:: 'ZMQ_XREP', 'ZMQ_REP' Compatible peer sockets:: 'ZMQ_XREP', 'ZMQ_REP'
Direction:: Bidirectional
Send/receive pattern:: Unrestricted Send/receive pattern:: Unrestricted
Outgoing routing strategy:: Load-balanced Outgoing routing strategy:: Load-balanced
Incoming routing strategy:: Fair-queued Incoming routing strategy:: Fair-queued
...@@ -163,7 +160,6 @@ application must include the _delimiter_ part. ...@@ -163,7 +160,6 @@ application must include the _delimiter_ part.
[horizontal] [horizontal]
.Summary of ZMQ_XREP characteristics .Summary of ZMQ_XREP characteristics
Compatible peer sockets:: 'ZMQ_XREQ', 'ZMQ_REQ' Compatible peer sockets:: 'ZMQ_XREQ', 'ZMQ_REQ'
Direction:: Bidirectional
Send/receive pattern:: Unrestricted Send/receive pattern:: Unrestricted
Outgoing routing strategy:: See text Outgoing routing strategy:: See text
Incoming routing strategy:: Fair-queued Incoming routing strategy:: Fair-queued
...@@ -189,8 +185,7 @@ ends. The _zmq_send()_ function shall never block for this socket type. ...@@ -189,8 +185,7 @@ ends. The _zmq_send()_ function shall never block for this socket type.
[horizontal] [horizontal]
.Summary of ZMQ_PUB characteristics .Summary of ZMQ_PUB characteristics
Compatible peer sockets:: 'ZMQ_SUB' Compatible peer sockets:: 'ZMQ_SUB', 'ZMQ_XSUB'
Direction:: Unidirectional
Send/receive pattern:: Send only Send/receive pattern:: Send only
Incoming routing strategy:: N/A Incoming routing strategy:: N/A
Outgoing routing strategy:: Fan out Outgoing routing strategy:: Fan out
...@@ -207,14 +202,44 @@ implemented for this socket type. ...@@ -207,14 +202,44 @@ implemented for this socket type.
[horizontal] [horizontal]
.Summary of ZMQ_SUB characteristics .Summary of ZMQ_SUB characteristics
Compatible peer sockets:: 'ZMQ_PUB' Compatible peer sockets:: 'ZMQ_PUB', 'ZMQ_XPUB'
Direction:: Unidirectional
Send/receive pattern:: Receive only Send/receive pattern:: Receive only
Incoming routing strategy:: Fair-queued Incoming routing strategy:: Fair-queued
Outgoing routing strategy:: N/A Outgoing routing strategy:: N/A
ZMQ_HWM option action:: Drop ZMQ_HWM option action:: Drop
ZMQ_XPUB
^^^^^^^^
Same as ZMQ_PUB except that you can receive subscriptions from the peers
in form of incoming messages. Subscription message is a byte 1 (for
subscriptions) or byte 0 (for unsubscriptions) followed by the subscription
body.
[horizontal]
.Summary of ZMQ_XPUB characteristics
Compatible peer sockets:: 'ZMQ_SUB', 'ZMQ_XSUB'
Send/receive pattern:: Send messages, receive subscriptions
Incoming routing strategy:: N/A
Outgoing routing strategy:: Fan out
ZMQ_HWM option action:: Drop
ZMQ_SUB
^^^^^^^
Same as ZMQ_SUB except that you subscribe by sending subscription messages to
the socket. Subscription message is a byte 1 (for subscriptions) or byte 0
(for unsubscriptions) followed by the subscription body.
[horizontal]
.Summary of ZMQ_XSUB characteristics
Compatible peer sockets:: 'ZMQ_PUB', 'ZMQ_XPUB'
Send/receive pattern:: Receive messages, send subscriptions
Incoming routing strategy:: Fair-queued
Outgoing routing strategy:: N/A
ZMQ_HWM option action:: Drop
Pipeline pattern Pipeline pattern
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
The pipeline pattern is used for distributing data to _nodes_ arranged in The pipeline pattern is used for distributing data to _nodes_ arranged in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment