The Perl 5 module Test::TCP provides test utilities for TCP/IP program.