The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#####################################################################
####             Configuration file for pDonkeyS.
#####################################################################
####
#### Any option can be passed in command line via --option=value,
#### like "pdonkeys --conf-file=other.conf".
####
#### To run pdonkeys in background daemon mode, do:
####   pdonkeys --setsid=1 --log_file=/tmp/pdonkeys.log --pid_file=/tmp/pdonkeys.pi
#### or set in conf file:
####   setsid 1
####   log_file /tmp/pdonkeys.log
####   pid_file /tmp/pdonkeys.pid
####
#### To turn off the daemon, do:
####   kill `cat /tmp/pdonkeys.pid`
####

#### pdonkeys specific options
## name         This will get displayed in the server list of the clients.
#               "string"                "pDonkeyS"
name            "pDonkeyS"
## desc         This will get displayed in the server list of the clients.
#               "string"                 "eDonkey server in Perl v$VERSION"
desc            "eDonkey server in Perl"
## maxClients   The server wont let more than this many clients connect to
#               it at a time.
#               \d+                     6000
#maxClients      1
# thisIP        The IP of this server. This is only needed if the server
#               determines its own IP incorrectly.
#               "dotaddr"                hostname()
# welcome       This is a message that each client that logs on to the 
#               server will be sent.   
welcome "------------------------------------------"
welcome "        Welcome to pDonkey Server!"
welcome " http://sourceforge.net/projects/pdonkey/"
welcome "------------------------------------------"
## statusTimeout Send server status update to clients with specified in
#               seconds period.
#               \d+                     60
#statusTimeout   60

## serverMet    Specify location for 'server.met' file. Multiple arguments allowed.
#               URL                     don't load by default
#serverMet       file://users/klimkin/Projects/Own/ed2k/Devel/pDonkey/server/server.met
serverMet       http://ocbmaurice.dyns.net/pl/slist.pl?download
## serverListTimeout Load list of servers from specified location in seconds period.
#               \d+                     86400 (once a day)
serverListTimeout 3600

#### Database access
# dbName            "dbi:DriverName:database_name@hostname:port"    "dbi:mysql:pDonkey"
# dbUser            "username"                                      "pDonkeyS"
# dbAuth            "userpass"                                      "pDonkeySPass"

#### Net::Server options (check man Net::Server for details)
# Key               Value                    Default

# conf_file         "filename"               undef

# log_level         0-4                      3
#log_level           3
# log_file          (filename|Sys::Syslog)   undef
#log_file            /var/log/pdonkeys.log

## syslog parameters
# syslog_logsock    (unix|inet)              unix
# syslog_ident      "identity"               "net_server"
# syslog_logopt     (cons|ndelay|nowait|pid) pid
# syslog_facility   \w+                      daemon

# port              \d+                      20203
# host              "host"                   "*"
# proto             (tcp|udp|unix)           "tcp"
# listen            \d+                      SOMAXCONN

# reverse_lookups   1                        undef
# allow             /regex/                  none
# deny              /regex/                  none

## daemonization parameters
# pid_file          "filename"               undef
# chroot            "directory"              undef
# user              (uid|username)           "nobody"
# group             (gid|group)              "nobody"
# background        1                        undef
# setsid            1                        undef

# no_close_by_child (1|undef)                undef

## UDP protocol parameters
# udp_recv_len      \d+                      4096
# udp_recv_flags    \d+                      0


#### Unused edk2 options
# public        If this is set to true then the server will tell all the 
#               servers it knows about that it is around. Those servers will
#               in turn tell clients that connect to them. If this is set to
#               false only clients that know the servers IP will be able to connect.        false
# seedIP        The address of the server to connect to to get a list of other 
#               servers and join the donkey network. This can be any other 
#               working donkey server.     
# seedPort      The port of the seed server                                                 4661
# filter[#]     Filter the shared files based on their meta. see below  -
# threads       Number of worker threads created to handle client requests. 
#               You should have about 5 per 100 clients.                                    5
# tableSize     Size of the hash table used to store file info. Should be a prime number.   2333
# maxVersion    The maximum core version that this server allows connections from.          1000
# minVersion    The minimum core version that this server allows connections from.          39