刚才调整了一下代码块的显示,现在决定写一点Python测试代码来试试看效果
"""
Complex example which is a combination of the rr* examples from the zguide.
"""
from gevent.monkey import patch_all
patch_all()
from gevent import spawn
import zmq.green as zmq
# server
context = zmq.Context()
socket = context.socket(zmq.REP)
socket.connect("tcp://localhost:5560")
def serve(socket):
while True:
message …