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

« back to all changes in this revision

Viewing changes to examples/heartbeat/heart.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:
16
16
 
17
17
ctx = zmq.Context()
18
18
 
19
 
dev = devices.ThreadDevice(zmq.FORWARDER, zmq.SUB, zmq.XREQ)
 
19
dev = devices.ThreadDevice(zmq.FORWARDER, zmq.SUB, zmq.DEALER)
20
20
dev.setsockopt_in(zmq.SUBSCRIBE, "")
21
21
dev.connect_in('tcp://127.0.0.1:5555')
22
22
dev.connect_out('tcp://127.0.0.1:5556')