jl777 7 years ago
parent
commit
22b2bcb311
  1. 2
      crypto777/nanosrc/aio/usock_posix.c

2
crypto777/nanosrc/aio/usock_posix.c

@ -286,7 +286,7 @@ int nn_usock_bind (struct nn_usock *self, const struct sockaddr *addr,
/* Allow re-using the address. */
opt = 1;
printf("call setsockopt in nn_usock_bind\n");
printf("call setsockopt %s SOL_SOCKET.%d SO_REUSEADDR.%d in nn_usock_bind\n",self->s,SOL_SOCKET,SO_REUSEADDR);
rc = setsockopt (self->s, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof (opt));
printf("called setsockopt in nn_usock_bind returns %d\n",rc);
errno_assert (rc == 0);

Loading…
Cancel
Save