Classic netcat with tcp keepalive switches.
C Objective-C
Latest commit dc7bbe2 Feb 18, 2013 @cyberelf again
Permalink
Failed to load latest commit information.
Makefile Initial commit Feb 18, 2013
README.md again Feb 18, 2013
README_netcat Initial commit Feb 18, 2013
atomicio.c Initial commit Feb 18, 2013
atomicio.h Initial commit Feb 18, 2013
nc.1 Initial commit Feb 18, 2013
netcat.c Initial commit Feb 18, 2013

README.md

Netcat Keep alive

Add tcp keepalive parameters for netcat.

The following new switches are provided to config keepalive parameters:

-K Turn on TCP Keepalive

-O secs TCP keepalive timeout

-I secs TCP keepalive interval

-P count TCP keepalive probe count

If any of "-O" "-I" "-P" not specified when -K is on, it will use kernel parameters by default. On linux for example, it will use:

sysctl -a | grep keepalive

net.ipv4.tcp_keepalive_time = 7200

net.ipv4.tcp_keepalive_probes = 9

net.ipv4.tcp_keepalive_intvl = 75

COMPILE FROM SOURCE

COMPILATION

make [platform_name]. For example:

make linux