Erlang driver for nanomsg