Talking Client and server code for PAIRed socked pattern
PAIR pattern with ZeroMQ and Python
Pair patterns provide bidirectional sockets which can only connect to one peer at a time, without any state associated with the socket connection.
To run start server first then client with same port:
python zmq-pair-server.py 5556
python zmq-pair-client.py 5556