[Gambas-user] Old problem.

Benoit Minisini gambas at ...1...
Tue Nov 18 17:29:43 CET 2003


Le Lundi 17 Novembre 2003 20:19, daniel a écrit :
>
> I don't know any way to ask the kernel to "forget" that connection :(,
> however, if anybody knows how to do it, I would be very pleased
> correcting that "bug"(?)
>
>
> Regards,
>
> Daniel Campos
>

Do the following before binding the socket:

  int auth = 1;
  setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, &auth, sizeof(int));

I don't know if it works, I read this in a book, and I don't know if it works 
on other systems than Linux.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...





More information about the User mailing list