~ubuntu-branches/ubuntu/precise/pyzmq/precise

« back to all changes in this revision

Viewing changes to examples/device/server.py

  • Committer: Package Import Robot
  • Author(s): Debian Python Modules Team
  • Date: 2011-09-23 00:16:39 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: package-import@ubuntu.com-20110923001639-girjqodpb7uv17yu
Tags: 2.1.9-1
* New upstream version
  - should build on kFreeBSD without patches (Closes: #637777).
* Build-depend on zeromq 2.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
context = zmq.Context(1)
39
39
 
40
 
workers = context.socket(zmq.XREQ)
 
40
workers = context.socket(zmq.DEALER)
41
41
workers.bind("inproc://workers");
42
42
 
43
 
clients = context.socket(zmq.XREP)
 
43
clients = context.socket(zmq.DEALER)
44
44
clients.bind('tcp://127.0.0.1:5555')
45
45
 
46
46
for i in range(10):