run dc client with file sharing
dcshare dchub://hub.net hub.com adc://hub.edu dir /dir/dir ...
unix adc:
dcshare adc://dc.hub.com:412 /share
win nmdc:
dcshare dchub://dc.hub.com c:/pub c:/distr
manual build filelist:
dcshare /share /sharemore
recommended module: Sys::Sendfile
create config.pl and fill with your sharedir, hubs and other options:
cp config.pl config.pl.dist
config with sharedirs:
$config{dc}{'share'} = [qw(/usr/ports/distfiles c:\distr c:\pub\ )];
predefined dc hubs:
$config{dc}{host} = ['myhub.net', 'adc://otherhub.com'];
if hubs and shares defined in config you can use simple
dcshare
full list of options available in ../lib/Net/DirectConnect/filelist.pm:
$self->{file_min} in filelist.pm must be written as
$config{dc}{file_min} = 1_000_000; #skip files smaller 1MB
freebsd: speedup: sysctl net.inet.tcp.sendspace=200000 or: sysctl
kern.ipc.maxsockbuf=8388608 net.inet.tcp.sendspace=3217968
filelist xml escape chars