Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: P2P Golf: MoleSter

by blazar (Canon)
on Dec 16, 2004 at 15:10 UTC ( #415364=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $p=shift;$a=shift;i(shift);socket S,2,1,6;bind S,&a($a);listen
    S,5;$/=undef;while(@ARGV&&($_="$p $a f".shift)||accept(C,S)&&($_=<C>)&
    +&close
    C){m!^(.*?) (.*?) ([e-i])([^/]*)/!s&&$1 eq$p&&&$3($2,$4,$');}sub e{ope
    +n
    ...
    a{$_[0]=~/:/;pack'CxnC4x8',2,$',split'\.',$`}sub
    s{socket X,2,1,6;$w=shift;if(connect X,&a($w)){print X
    "$p $_[0] $_[1]/$_[2]";close X}else{undef $k{$p}}}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://415364]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-09-02 17:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (26 votes), past polls