in reply to Reading and writing sockets
Then you wait for transmissions:$server = IO::Socket::INET->new( Listen => 5, LocalPort => 4000, Proto => 'tcp', Reuse => 1, Type => SOCK_STREAM ) or die "Can't create server socket: $!";
Within this while loop, you can both accept transmissions, and respond to $client with something like:while ($client = $server->accept()) {
print $client $ack;
|
|---|