#
#   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
socket = context.socket(zmq.PAIR)
socket.connect("tcp://localhost:9876")

#  Do 10 requests, waiting each time for a response
#for request in range(100):
while True:
    #  Get the reply.
    message = socket.recv()
    print("Received [ %s ]" % (message))

d152689c4bd4a298e150df4a2b7d15ff7cc4ced4
<mask token>

<mask token>
socket.connect('tcp://localhost:9876')
while True:
    message = socket.recv()
    print('Received [ %s ]' % message)

<mask token>
context = zmq.Context()
socket = context.socket(zmq.PAIR)
socket.connect('tcp://localhost:9876')
while True:
    message = socket.recv()
    print('Received [ %s ]' % message)

import zmq
context = zmq.Context()
socket = context.socket(zmq.PAIR)
socket.connect('tcp://localhost:9876')
while True:
    message = socket.recv()
    print('Received [ %s ]' % message)

#
#   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
socket = context.socket(zmq.PAIR)
socket.connect("tcp://localhost:9876")

#  Do 10 requests, waiting each time for a response
#for request in range(100):
while True:
    #  Get the reply.
    message = socket.recv()
    print("Received [ %s ]" % (message))
