[Pachi] setsockopt : Invalid argument. seems resolved
pasky at ucw.cz
Wed Feb 20 11:44:44 CET 2013
On Tue, Feb 19, 2013 at 02:04:15AM +0800, Farmer Lu wrote:
> when i try to run pachi in distributed mode, it always shows
> "setsockopt: invalid argument"
> until i modified the following line in network.c:
> // const char val = 1;
> const int val = 1; //farmer
> any one know the reason ?
> gcc version 4.7.2 (Debian 4.7.2-5)
That's a good point! Indeed, this was a bug in the original code,
SO_REUSEADDR value is supposed to be an int. Thank you, I have committed
Petr "Pasky" Baudis
More information about the Pachi