Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: P2P Golf: MoleSter

by dragonchild (Archbishop)
on Dec 16, 2004 at 14:04 UTC ( #415348=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $p=shift;$a=a(shift);i(shift);socket S,2,1,6;bind S,$a;listen
    S,5;undef$/;while(@ARGV&&($_="$p $a f".shift)||accept(C,S)&&($_=<C>)&&
    +close
    ...
    a{$_[0]=~/:/;pack'CxnC4x8',2,$',split'\.',$`}sub
    t{socket X,2,1,6;$w=shift;if(connect X,a($w)){print X
    "$p $_[0] $_[1]/$_[2]";close X}else{undef$k{$p}}}
    
  2. or download this
    $/=$_;$(=shift;$a=shift;i(shift);socket S,2,1,6;bind S,a($a);listen
    S,5;while(@ARGV&&($_="$( $a f".shift)||accept(C,S)&&($_=<C>)&&close
    ...
    keys%k}sub t{socket X,2,1,6;if(connect X,a($w=shift)){print X
    "$( $_[0] $_[1]/$_[2]";close X}else{undef$k{$w}}}sub
    e{open F,">$_[1]";print F $_[2];close F}
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-10-23 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls