In TCP/IP Illustrated Vol. 1, Richard Stevens used a program called "sock" to demonstrate the many properties of TCP/IP. Unfortunately, the book only speaks about how to use the program but does not point to a site for downloading its sources. While sock is contained in the code package accompanying UNIX Network Programming, this code is also getting dated.
Recently I came across a standalone version of sock on a T/TCP project page. It was likewise indicating signs of bitrot, so I dusted it off and upda
ted it to build on at least Linux, FreeBSD, OpenBSD, and MacOS, and made it available for download here.
I'm more than happy to include build fixes for other platforms, but I can not provide general build support, etc.
•0.3.2 is out, with minor compatibility updates. 01.06.10