i see you're using an old style, i wondered where you learned it from.
Ruby extension that wraps the official high level ZeroMQ C API ( http://czmq.zeromq.org/ )