about summary refs log tree commit diff
path: root/misc/benc.c
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2005-11-07 14:57:39 +0000
committerRichard Nyberg <rnyberg@murmeldjur.se>2005-11-07 14:57:39 +0000
commit71b986e549d17919dfcf4e5e19f3a6b7337d255e (patch)
tree3351dd82afb1a0ef460bf50c83cd41701093e6f7 /misc/benc.c
parent8033ec33a1f74afdd9968f815b4fb96c7b2e4391 (diff)
downloadbtpd-71b986e549d17919dfcf4e5e19f3a6b7337d255e.tar.gz
btpd-71b986e549d17919dfcf4e5e19f3a6b7337d255e.zip
Step one of many to make the sub systems more modular. This commit gets
rid of the global btpd struct. Some fields in the struct got a corresponding
global variable whereas some was made static and moved to a module.

The bandwidht algorithm also got tweaked. It now tries to fire the event
at specific times. This was to make the code simpler. It'll probably have
to be tweaked again :P

First step to make btpd run from a directory where it'll keep the log,
socket, configuration, data on the known torrents, etc. Btpd now uses
flock on the pidfile instead of connecting to the socket in order to
be reasonably sure that no other btpd runs in the same directory.

Diffstat (limited to 'misc/benc.c')
0 files changed, 0 insertions, 0 deletions