Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
        print $buf while (defined ($buf = <$new_sock>))        
    }
    close ($sock);
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
        $sock->flush;
    }
    close ($sock)
    
  3. or download this
    my $sock = new IO::Socket::INET (LocalHost => 'sgilbertdt',
                                     localPort => 1200,
    ...
                                     Listen    => 5,
                                     Reuse     => 1
                                    );