(bind-func nnsock_bind (lambda (sock addr) (if (< (nn_bind sock addr) 0) (nn_println_strerror "error binding socket")) sock))