Help for this page

Select Code to Download


  1. or download this
    use IO::Socket;
    use strict;
    ...
    ) or die "Could not create socket: $!\n";
    select($sock); $|=1;
    $sock->send("message from client") or die "Send error: $!\n";
    
  2. or download this
    use IO::Socket;
    use strict;
    ...
    while($server->recv($datagram, $MAX_TO_READ)){
            print $datagram;
    }