Help for this page

Select Code to Download


  1. or download this
    {
      package SimpleSrv;
    ...
    my $server = SimpleSrv->new(8080);
    $server->host('127.0.0.1');
    $server->run();
    
  2. or download this
    $ telnet localhost 8080
    Trying 127.0.0.1...
    ...
    
    <<<foobar>>>
    Connection closed by foreign host.