From 7d5c3dcd969161322deed6c43f8a6a3cb92c3369 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 11 Nov 2014 11:53:55 -0500 Subject: upgrade to 14.4.1 --- examples/bench/pyzmq_client.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/bench/pyzmq_client.py (limited to 'examples/bench/pyzmq_client.py') diff --git a/examples/bench/pyzmq_client.py b/examples/bench/pyzmq_client.py new file mode 100644 index 0000000..9afccec --- /dev/null +++ b/examples/bench/pyzmq_client.py @@ -0,0 +1,16 @@ +import zmq + +c = zmq.Context() +s = c.socket(zmq.REQ) +s.connect('tcp://127.0.0.1:10001') + +def echo(msg): + s.send(msg, copy=False) + msg2 = s.recv(copy=False) + return msg2 + +class Client(object): + pass + +client = Client() +client.echo = echo -- cgit v1.2.3