はじめに こんにちは、Python界の情弱です。ZeroMQを使って色々やろうと思うことがあったので、ZeroMQのガイドをPython版でやってみることにした。 参考 Python binding - zeromq PyZMQ Documentation — PyZMQ 2.2dev documentation ØMQ - The Guide - ØMQ - The Guide REQ/REP コード Hello World Server/Client helloworldsrv.py (Hello World Server) import zmq import time context = zmq.Context() responder = context.socket(zmq.REP) responder.bind("tcp://localhost:5555") while True
![pyzmqでZeroMQを触ってみる (REQ/REP) - YAMAGUCHI::weblog](https://cdn-ak-scissors.b.st-hatena.com/image/square/d97fbaf865e5a11436a434bdacdfe6e5bb2845db/height=288;version=1;width=512/http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F51tVn4YqQUL.jpg)