Help for this page

Select Code to Download


  1. or download this
    $server = IO::Socket::INET->new(
      Listen    => 5,
    ...
      Reuse     => 1,
      Type      => SOCK_STREAM
    ) or die "Can't create server socket: $!";
    
  2. or download this
    while ($client = $server->accept()) {
    
  3. or download this
    print $client $ack;