Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
105 lines (67 sloc) 2.46 KB

API Documentation

Factory

All ØMQ connections should belong to some context, txZMQ wraps that into concept of factory that tracks all connections created and wraps context.

Factory could be used as an easy way to close all connections and clean up Twisted reactor.

Base Connection

:class:`ZmqConnection` isn't supposed to be used explicitly, it is base for different socket types.

Publish-Subscribe

For information on publish-subscribe in ØMQ, please read either reference or guide (look for publish-subscribe).

Note

These classes use PUB and SUB sockets from ØMQ. Special framing is implemented to support sending tag: tag and message are separated by zero byte and sent over as single message. This is related to the way PUB-SUB works with PGM (UDP multicast): multipart messages are sent as multiple datagrams and they get mixed together if several publishers exist in the same broadcast domain.

Push-Pull

For information on push and pull sockets in ØMQ, please read either reference or guide (look for pull or push).

Request-Reply and Router-Dealer

For information on these socket types in ØMQ, please read either reference or guide (look for router/dealer and request/reply).