
Test::TCP - testing TCP program

use Test::TCP;
my $port = empty_port();
test_tcp(
client => sub {
my $port = shift;
# send request to the server
},
server => sub {
my $port = shift;
# run server
},
);

Test::TCP is test utilities for TCP/IP program.

my $port = empty_port();
search empty port
test_tcp(
client => sub {
my $port = shift;
# send request to the server
},
server => sub {
my $port = shift;
# run server
},
# optional
port => 8080
);
wait_port(8080);
Waits for a particular port is available

Tokuhiro Matsuno <tokuhirom@gmail.com>


This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.