Tool/software:
Hi,
How can I activate the keep alive mechanism on the TCP server example ?
I get no event when TCP client ungracefully disconnects. (Cable unplugged - or client software crashes)
I've tried to use socket options
if (setsockopt(socket, IPPROTO_TCP, TCP_KEEPIDLE, &keepidle, sizeof(keepidle)) < 0) ...
but it always fails.
Thanks,
Eli