Added socket functions, to better wrap ZMQ.