about summary refs log tree commit diff
AgeCommit message (Collapse)Author
2006-02-17Two changes to stat output:Richard Nyberg
1. Show the number of torrents with tracker errors on the total status line. 2. Show the torrent status character on the status line instead of the name line. This only has effect when the '-i' flag is given.
2006-02-17Set default value of cm_alloc_size to 2MB.Richard Nyberg
2006-02-12Set its rates to zero when stopping a torrent.Richard Nyberg
2006-02-11Rewrote the README with changes for 0.8..Richard Nyberg
2006-02-11Changes for 0.8.Richard Nyberg
2006-02-11Don't allow a negative cm_alloc_size to wreak havoc. Richard Nyberg
2006-02-11Return possible error message in the http result. Log the error in theRichard Nyberg
tracker code.
2006-02-11Change preallocation default to 2048. 1 may be a little low. Richard Nyberg
2006-02-11Safer type use.Richard Nyberg
2006-02-10Fix typo.Richard Nyberg
2006-02-10Add a note on the ACX_PTHREAD macro license.Richard Nyberg
2006-02-10I don't quite like this file. I think I will use the trac site to keepRichard Nyberg
this kind of information instead.
2006-02-10Better log message.Richard Nyberg
2006-02-10Better log message.Richard Nyberg
2006-02-10Be careful not to stop the sub struct if they haven't been started. AlsoRichard Nyberg
be careful so that we don't operate on a dead torrent.
2006-02-10Oops! Forgot to free some memory.Richard Nyberg
2006-02-10Call realpath after creating the dir. At least on linux the call to realpathRichard Nyberg
may fail if the last path component doesn't exist.
2006-02-10Use c99 types conservatively to compile on OpenBSD. Also convert to or fromRichard Nyberg
time_t via long.
2006-02-10Glibc needs sys/file.h for flock.Richard Nyberg
2006-02-10Mostly name changes. Add a missing include. Changed the torrent statusRichard Nyberg
characters displayed by btcli.
2006-02-10Glibc doesn't support locking in open. Use flock after open instead.Richard Nyberg
2006-02-10Put the ACX_PTHREAD macro from the Autoconf macro archive in acinclude.m4.Richard Nyberg
Build btpd with pthreads.
2006-02-10Change the downloaders option to max-uploads. I find it much less confusingRichard Nyberg
that way :P
2006-02-09Add torrent_name function and use it. Richard Nyberg
2006-02-09btcli stat now takes file arguments to only include stats for the givenRichard Nyberg
torrents.
2006-02-09Include the info hash in the tpstat structure.Richard Nyberg
2006-02-09o Since the torrent sub structs always exist now, we can always write allRichard Nyberg
stats for torrentst. o btpd may be waiting for a torrent to finish so it can exit. Therefore btpd needs to send the reply to the cli before removing the torrent.
2006-02-09There's no need for exactly 64 bits for the upload and download count.Richard Nyberg
Make them long long instead.
2006-02-09Removed the http_redo hack.Richard Nyberg
2006-02-09o Make the torrent sub struct exist for whole life time of the torrent.Richard Nyberg
o Better code for stopping the tracker. No more need for the http_redo hack.
2006-02-09Fix typo. Index should be i not 1.Richard Nyberg
2006-02-08Interaction with btpd is now much more like I want it. Previous workRichard Nyberg
has moved toward btpd having a library of torrent to wich one may add or remove torrents, and where interaction on torrents are done by their assigned number. This commit is a step back from that and it makes life simpler and better for all :) * Some options to btpd has changed: --no-daemon is the old -d. -d is now used to specify the btpd directory. --logfile option is reintroduced. * The ipc code has been improved on both btpd and cli sides. * All commands have been implemented. * Various improvements in btpd. With this commit we're very close to 0.8 :)
2006-02-08White space.Richard Nyberg
2006-02-08Add functions find_btpd_dir.Richard Nyberg
2006-02-08Remove unused function canon_path.Richard Nyberg
2006-02-08Use benc_dget_mema instead of benc_dget_mem + malloc + bcopy.Richard Nyberg
2006-02-08Use strtoul to parse length of strings.Richard Nyberg
2006-02-08Added buf_swrite.Richard Nyberg
2006-02-06Check for failure to allocate memory.Richard Nyberg
2006-02-06Remove som unused code I commited by mistake. Replace integer parse codeRichard Nyberg
in benc_int with a call to strtoll.
2006-02-05Added description of stat output. Changed the stat output.Richard Nyberg
2006-02-05o Changed the benc_ api to make it easier to use.Richard Nyberg
o Lot of work on the cli and its communication with btpd.
2006-02-05Make the buf api safe to continue to use even if an error has occured.Richard Nyberg
2006-02-05Add functions read_fully and write_fully. They are simpler alternatives toRichard Nyberg
read and write on blocking sockets.
2006-02-05Add a function to look up a torrent by its number.Richard Nyberg
2006-02-05Each torrent now gets a number. This number is used to select which torrentRichard Nyberg
to operate on from btcli.
2006-02-05Add function to get tracker error count. Don't look for peers and stuffRichard Nyberg
in tracker replies when we're stopping.
2006-02-05Help text changes.Richard Nyberg
2006-02-01Torrents can now be deactivated and btpd will wait for all torrents toRichard Nyberg
deactivate on shutdown. To not risk hanging indefinitely on unresponsive trackers, btpd will cancel tracker requests after a while.
2006-02-01o Fixed: cm->active was not set to 0 in cm_stop.Richard Nyberg
o Since we only use the mtime and size field of the stat struct for resume info, we now use a struct with only those two fields. This reduces stack usage.