Quozl wrote a tiny program that tests a TCP/IP service by attempting
a connection and then reporting to standard output. No data transfer
is done. It is intended for use in scripts for testing availability of
critical services, as it generates an easily parsable output along with
meaningful status codes.
Script-Friendly TCP/IP Server Tester
Linux C Programming Network Programming
(12 October 2003)