Re: P2P in 15 lines

2004-12-16 Thread Vladi Belperchinov-Shabanski
list please? :) only IO::Socket::INET I guess... On Wed, 15 Dec 2004 22:58:07 -0800 Brad Greenlee <[EMAIL PROTECTED]> wrote: > Sorry, forgot to mention that I worked under the assumption that if I > used any modules, they had to be part of the standard Perl distribution. > The only thing that

Re: P2P in 15 lines

2004-12-16 Thread Brad Greenlee
Vladi Belperchinov-Shabanski wrote: list please? :) only IO::Socket::INET I guess... Vladi- Here are the modules listed in Chapter 32: "Standard Modules", of Programming Perl, 3rd ed.: Benchmark Carp CGI CGI::Carp Class::Struct Config CPAN Cwd Data::Dumper DB_File Dumpvalue English Errno Exporter

Re: P2P in 15 lines

2004-12-16 Thread Brad Greenlee
Right...I had a version that used crypt on the password at one point, but then realized that was silly; it was no different than just using a plaintext password that looked like gobbleygook. The original python version never actually sends the password in any form; I believe it just uses it to

Re[2]: P2P in 15 lines

2004-12-16 Thread Karsten Sperling
On Thursday, December 16, 2004, Brad Greenlee wrote: > The original python version never actually sends the password in any > form; I believe it just uses it to hash the server url, which gets > passed as a parameter. The server then just hashes its own url with its > password to see if they matc

Re: P2P in 15 lines

2004-12-16 Thread Yitzchak Scott-Thoennes
On Thu, Dec 16, 2004 at 08:08:11AM -0800, Brad Greenlee wrote: > That or someone with sufficient power could make Digest::MD5 or ::SHA1 > part of the standard perl distro :-). Digest and Digest::MD5 are in 5.8.0.

Re[2]: P2P in 15 lines

2004-12-16 Thread Karsten Sperling
On Thursday, December 16, 2004, Brad Greenlee wrote: > Sorry, forgot to mention that I worked under the assumption that if I > used any modules, they had to be part of the standard Perl distribution. > The only thing that's really lacking compared to the python version is > some kind of digest a

Re: P2P in 15 lines

2004-12-16 Thread Brad Greenlee
Doh! Somebody beat me to it. Didn't use IO::Socket either: http://developers.slashdot.org/article.pl?sid=04/12/15/1953227&tid=95&tid=156&tid=1 -b Sven Neuhaus wrote: Can we beat them (in perl)? http://www.freedom-to-tinker.com/tinyp2p.html

Re: P2P in 15 lines

2004-12-16 Thread Dave Cross
[ re-ordered to make sense ] On Thu, Dec 16, 2004 at 02:51:41PM +0200, Vladi Belperchinov-Shabanski wrote: > > On Wed, 15 Dec 2004 22:58:07 -0800 > Brad Greenlee <[EMAIL PROTECTED]> wrote: > > > Sorry, forgot to mention that I worked under the assumption that if I > > used any modules, they had