Help for this page

Select Code to Download


  1. or download this
    my $client = $server->accept;
    open(STDIN,  "<&=", $client) || die "Couldn't dup client to stdin";
    open(STDOUT, ">&=", $client) || die "Couldn't dup client to stdout";
    print "The client should see this STDOUT message.\n";
    print $client "The client should see this SOCKET message.\n";
    
  2. or download this
    $ nc --ssl localhost 12345
    The client should see this SOCKET message