Simple port of the NetCat command in C using sockets.
$ git clone https://github.com/8dcc/snc
$ cd snc
$ make
...
$ ./snc h
Usage:
./snc h - Show this help
./snc l - Start in listen mode
./snc c <IP> - Connect to specified IP address
In a terminal:
$ ./snc l # Start to listen. It will print received data.
$ ./snc l > output.txt
In another terminal:
$ ./snc c IP
Type stuff here!
It will send it to the listening session.
$ ./snc c IP < input.txt