Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    #server
    ...
        print "Recieved 2 '$buf'\n";
        $new_sock->say("12");
    }
    
  2. or download this
    #!/usr/bin/perl
    #client
    ...
    $buf = $sock->getline();
    chomp($buf);
    print "Bytes 2 = '$buf'\n";