[patch] KExtendedSocket and SO_REUSEADDR

Zack Rusin zack at kde.org
Thu Jan 2 23:58:09 GMT 2003


On Tuesday 31 December 2002 08:39, Malte Starostik wrote:
> Hi,
>
> as mentioned earlier, KExtendedSocket set SO_REUSEADDR too late,
> effectively making it useless.
> This one fixes it for me makes it possible to call
> setAddressReusable() before calling listen(), the only problem I see
> is that the return value doesn't represent success of setsockopt()
> anymore.
> Okay to apply to both HEAD and bru^Hanch?

Looks good. Just one question : why is the "on" parameter casted to 
char* ? SO_REUSEADDR takes an int, and the size of the int is passed as 
the optlen, so why cast it?

Zack 

-- 
Intel: We put the 'um...' in Pentium.





More information about the kde-core-devel mailing list