Re: Per-connection TCP_KEEPALIVE setting?

From: Nick Patavalis (npat@inaccessnetworks.com)
Date: Sat Sep 20 2003 - 14:34:29 EST


On Sat, Sep 20, 2003 at 02:23:19PM -0500, Philip Mak wrote:
>
> There seems to be a TCP_KEEPALIVE option in POSIX, but I can't find a
> #define for TCP_KEEPALIVE in /usr/include. Does Linux support this?
>

It does.

man setsockopt

and also

man 7 socket

....

SO_KEEPALIVE
Enable sending of keep-alive messages on connec-
tion-oriented sockets. Expects a integer boolean
flag.

/npat

--
I'm writing a book. I've got the page numbers done.
-- Stephen Wright
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html