P2P::pDonkeyS - eDonkey server, based on Net::Server::Multiplex with MySQL database.
Net::Server::Multiplex
mysql -u root -p <makedb.sql pdonkeys --setsid=1 --log_file=/tmp/pdonkeys.log --pid_file=/tmp/pdonkeys.pid pdonkeys --conf_file=pdonkeys.conf kill `cat /tmp/pdonkeys.pid` mysql -u root -p <dropdb.sql
Visit http://sourceforge.net/projects/pdonkey/ for the latest version.
pDonkeyS is perl implementation of eDonkey server. It is built upon Net::Server::Multiplex and utilizes the power of MySQL for storing, fetching and searching shares.
The main goal of the server is to provide framework for further eDonkey protocol exploration, but it could be usefull in testing of client software, since the server can be configured to output very detailed debug info about eDonkey traffic.
There are two possible ways to pass arguments to pdonkeys. They are passing on command line or using a conf file. pdonkeys accepts all Net::Server and Net::Server::Proto::UDP arguments plus eDonkey specific arguments.
pdonkeys
Net::Server
Net::Server::Proto::UDP
While passing arguments to pdonkeys on command line, arguments specified in form --argument=value.
--argument=value
While using configuration file, arguments specified in form argument value or argument=value. One argument per line.
argument value
argument=value
Name of server which will displayed in the server list of the clients.
Description of server which will displayed in the server list of the clients.
The maximum number of clients, connected to server. Default is 6000.
The IP of this server. This is only needed if the server determines its own IP incorrectly. Default received from hostname().
hostname()
The message that each client that logs on to the server will be sent.
The interval between server status updates to clients. Defauls is 60.
URL of server.met file. Multiple options allowed. Server list updates from specified URLs at start and each serverListTimeout seconds. Timeout is set to 10 seconds. server.met loads blocks the server, so if source don't response, there will be 10 seconds lag for each serverMet argument.
serverListTimeout
serverMet
The interval between server list updates on server. Default is 86400 - once a day.
The database source for DBI::connect(). For details check DBI. Default is "dbi:mysql:pDonkey".
DBI::connect()
User to use for access to dbName. Default is "pDonkeyS".
dbName
Password to use for access to dbName. Default is "pDonkeySPass".
accept()
Net::Server, Net::Server::Multiplex, DBI
Copyright (c) 2003 Alexey Klimkin <klimkin at cpan.org>.
All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
3 POD Errors
The following errors were encountered while parsing the POD:
Can't have a 0 in =over 0
You forgot a '=back' before '=head2'
'=item' outside of any '=over'
To install P2P::pDonkeyS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm P2P::pDonkeyS
CPAN shell
perl -MCPAN -e shell install P2P::pDonkeyS
For more information on module installation, please visit the detailed CPAN module installation guide.