quite simple network question

Wojciech Puchar wojtek at puchar.net
Fri Jul 5 10:06:40 UTC 2019


problem found

for setting TCP options second parameter of setsockopt should be 
IPPROTO_TCP not SOL_SOCKET

On Fri, 5 Jul 2019, Wojciech Puchar wrote:

>>> But even after minute of waiting i don't get disconnect.
>>> 
>>> What i am doing wrong?
>> 
>> I believe you have to set the exceptfds argument to select() properly.
>> 
>> 
> added. same effects.
>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>
>


More information about the freebsd-hackers mailing list