zmq3 code

Hi,

Here is my variant with zmq3 if you interested :)