Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: P2P Golf: MoleSter

by dragonchild (Archbishop)
on Dec 16, 2004 at 14:04 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://415348]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found