summaryrefslogtreecommitdiff
path: root/examples/zmq_chat.py
Commit message (Collapse)AuthorAgeFilesLines
* PEP-8 fixesSergey Shepelev2014-08-271-3/+6
|
* python3 compat: print() function syntaxSergey Shepelev2013-12-031-6/+6
|
* python3 compat: 2to3: `except E as e:` syntaxDavanum Srinivas2013-12-031-1/+1
| | | | | | | First step to Python 3 compatibility "2to3 -w -f except ." See [1] [1] http://docs.python.org/2/library/2to3.html#fixers
* First stab at zeromq support. This consists of:Ben Ford2010-09-201-0/+64
A new hub: This closely mirrors the poll hub with some of the internal logic changed to reflect zmq's flags. A green module for zmq: This subclasses Context and Socket to ensure calls are non blocking. A (very sparse) beginings of a test module. An example: A melding of the pyzmq chat example and the eventlet telnet chat example. TODO zmq_poll chokes if the sockets passed to it come from different contexts. As context is the entry point to everything else then it would make sense to include a check in here that each thread has only one context instance. By context being the entry point I mean: ctx = zmq.Context() socket = ctx.socket(zmq.<type-of-socket>) This call to socket is repeated for each socket you want and ctx must be the same one for each thread. Tests. I'd like to get to the point f having all zmq socket pairs tested - and perhaps a nice benchmark suite too.