stdlib : zeromq
Here is a simple server which will echo whatever messages it receives back to the sender:
Here is a client that will connect to the server above:
Binds the socket to the given address to accept connections.
Close the socket.
Connect the socket to a given address.
Create a new ZeroMQ context with the given number of threads. If no number is specified, the default is a single thread.
This returns a new socket of the given type. type will be one of
For a description of these options, see zmq_socket(3).
Receive a message. Returns the message as a string.
Sends a string.
socket.set_opt option, value
Set options on a socket.
Terminates the ZeroMQ context.