(bind-func nnsock_connect (lambda (sock addr) (if (< (nn_connect sock addr) 0) (nn_println_strerror "error connecting socket")) sock))