keepintvl

Is there an equivalent to TCP_KEEPIDLE, TCP_KEEPCNT, and TCP_KEEPINTVL under MacOS/X?

Hi all, I've got a server that runs under MacOS/X and Linux. Under Linux, I've found the following code to be useful in specifying a TCP socket's behavior in the case where a client gets suddenly disconnected from the network: int arg = 5; // send a keepalive packet after 5 seconds of inactivity if (setsockopt(fd, SOL_TCP, TCP_KEEPI...