2
from zmq.eventloop import ioloop
4
loop = ioloop.IOLoop.instance()
7
s = ctx.socket(zmq.REP)
8
s.bind('tcp://127.0.0.1:5555')
10
def rep_handler(sock, events):
11
# We don't know how many recv's we can do?
13
# No guarantee that we can do the send. We need a way of putting the
14
# send in the event loop.
17
loop.add_handler(s, rep_handler, zmq.POLLIN)
b'\\ No newline at end of file'