summaryrefslogtreecommitdiff
path: root/tests/autotest-remote-server.pl
blob: e11380848f77d3642a767a8a0f4cacdd91845bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl

use IO::Socket;

my $server = new IO::Socket::INET(LocalPort => 7183, Listen => 1);
die "Could not create socket: $!\n" unless $server;

my $client = $server->accept();

print while (<$client>);