+#!/usr/bin/python3
+# -*- coding: utf8 -*-
+#
+# Hello World client in Python
+# Connects REQ socket to tcp://localhost:5555
+# Sends "Hello" to server, expects "World" back
+#
+
+import zmq
+
+context = zmq.Context()
+
+# Socket to talk to server
+print("Connecting to hello world server…")
+socket = context.socket(zmq.REQ)
+#socket.connect("tcp://localhost:5555")
+socket.connect("ipc:///home/lionel/work/python/my_prox/0")
+
+# Do 10 requests, waiting each time for a response
+for request in range(10):
+ print("Sending request %s …" % request)
+ socket.send(b"Hello")
+
+ # Get the reply.
+ message = socket.recv()
+ print("Received reply %s [ %s ]" % (request, message))
+