Help for this page

Select Code to Download


  1. or download this
        for ( ; $paddr = accept(Client,Server); close Client) {
            my($port,$iaddr) = sockaddr_in($paddr);
            my $name = gethostbyaddr($iaddr,AF_INET);
            logmsg "connection from $name [", inet_ntoa($iaddr), "] at por
    +t $port";