Implementing some pure zmq functions