~ubuntu-branches/ubuntu/wily/pyzmq/wily-proposed

« back to all changes in this revision

Viewing changes to docs/source/eventloop.rst

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2014-05-14 21:27:23 UTC
  • mto: (15.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20140514212723-qov2ebwo275typj0
Tags: upstream-14.3.0
ImportĀ upstreamĀ versionĀ 14.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
    s2.bind('tcp://localhost:54321')
118
118
    stream2 = ZMQStream(s2)
119
119
    
120
 
    def echo(msg, stream):
 
120
    def echo(stream, msg):
121
121
        stream.send_multipart(msg)
122
122
    
123
123
    stream1.on_recv_stream(echo)