about summary refs log tree commit diff
AgeCommit message (Collapse)Author
2006-11-03Avoid unnecessary operations on tracker stop. Use STOP_ERRORS constantRichard Nyberg
for the number of tracker errors to tolerate when we're stopping.
2006-11-03Missed this file in the last commit. Simplify some interfaces by pollingRichard Nyberg
for state changes when appropriate instead of being called directly at any time.
2006-11-03Make the content code unthreaded and remove the no longer needed interRichard Nyberg
thread messaging code. Also simplify some interfaces by polling for state changes when appropriate instead of being called directly at any time.
2006-11-02Add bts_filename which gets the current filename from a bt_stream.Richard Nyberg
2006-10-31Add initialization of evdns.Richard Nyberg
2006-10-31Now that btpd doesn't use select, we don't need to limit fd's to FD_SETSIZERichard Nyberg
unless libevent uses the select method.
2006-10-31Remove calls to the already removed old http code.Richard Nyberg
2006-10-31Some cleanup. Use names for some numeric constants.Richard Nyberg
2006-10-31Split the tracker code into a generic part and a http specific part. ThisRichard Nyberg
allows me to add code for other types of trackers. Remove the curl interface glue, since I use my own http client now. The curl code was my main reason for using threads, so I'm a large step closer to make btpd unthreaded again.
2006-10-31Rename callback type, add timeouts and and allow any http version in theRichard Nyberg
reply.
2006-10-31No parenthesis needed around a string value.Richard Nyberg
2006-10-31Add max(x, y) macro.Richard Nyberg
2006-10-29Add a simple http client. Since it uses libevent it's a better fit for btpdRichard Nyberg
than curl.
2006-10-26Don't really know why I did setlocale. Get rid of it since I want the CTYPERichard Nyberg
to be standard.
2006-10-16Random changes :)Richard Nyberg
2006-10-16Rewrote parts of the README and updated it with information on the new stuffRichard Nyberg
in 0.12.
2006-10-16Help text format change.Richard Nyberg
2006-10-15Don't call mkdirs unnecessarily. Note that this code is only needed becauseRichard Nyberg
the content code shuts down btpd on errors. When that is fixed this code can be removed.
2006-10-15Make mkdirs behave more like 'mkdir -p' and make btpd create the directoryRichard Nyberg
hierarchy to a specified torrent content directory if neccessary.
2006-10-15OpenBSD doesn't have stdint.h. It'd be great if they would implement basic c99Richard Nyberg
library support some day...
2006-10-15There's no need to fsync here, so remove the call. This should improveRichard Nyberg
write performance.
2006-10-15Always update the tlib info when a torrent is stopped. Some code shuffle.Richard Nyberg
2006-10-14Add and use the function make_abs_path. realpath didn't fit my needs.Richard Nyberg
make_abs_path doesn't need the directories to actually exist in the file system.
2006-10-14Forgot to free some memory. Remove some broken code; it wasn't neededRichard Nyberg
yet anyway. glibc doesn't have the d_namlen field in struct dirent, so we'll have to use strlen instead.
2006-10-14Update for the read_whole_file -> read_file change.Richard Nyberg
2006-10-14Create all files of a torrent at startup.Richard Nyberg
2006-10-14Add missing include.Richard Nyberg
2006-10-14Safer way to initialize the address.Richard Nyberg
2006-10-14Simplify read_whole_file and rename to read_file.Richard Nyberg
2006-10-12Document changes for 0.12.Richard Nyberg
2006-10-12Bump version to 0.12.Richard Nyberg
2006-10-12Allow empty files in torrents. Create them in stat_and_adjust and let theRichard Nyberg
stream abstraction skip past them.
2006-10-12Add missing includes.Richard Nyberg
2006-10-11A string wasn't properly zero terminated.Richard Nyberg
2006-10-11Add missing include.Richard Nyberg
2006-10-08Make the del command work for active torrents too.Richard Nyberg
2006-10-07Help text changes and make del and start take the --help option.Richard Nyberg
2006-10-07btcli list now displays size, ratio and the percentage got of torrents.Richard Nyberg
It sorts by name instead of number (should probably add options for sorting). It now also takes torrents to list as optional arguments. Added ratio to btcli stat display. Changed the help text for both commands. Some code shuffle and other tweaks.
2006-10-07Add value queries for total amount up- and downloaded. Use the cached valuesRichard Nyberg
for torrent size and amount gotten when the torrent isn't active.
2006-10-07Save the total amount down- and uploaded and cache the torrent size and theRichard Nyberg
amount we have in the info file.
2006-10-06Remove unneeded braces.Richard Nyberg
2006-10-06Add command to stop all active torrents. The command is sent byRichard Nyberg
'btcli stop -a'.
2006-09-17Whitespace.Richard Nyberg
2006-09-17Add function benc_strcmp.Richard Nyberg
2006-09-17Better message for ENOTENT.Richard Nyberg
2006-09-17btcli add now starts the torrent if not told otherwise. Soem cleanup andRichard Nyberg
improved error output.
2006-09-16Return rates in bytes/s instead of time factor * bytes/s. Clients shouldRichard Nyberg
not need to know about the sample time.
2006-09-16Make tests for unit changes to take rounding into account.Richard Nyberg
2006-09-16Reprint the header at suitable intervals. Display sizes >= 1000MB in gigsRichard Nyberg
instead of megs. Similarily, display rates >= 1000kB/s in MB/s instead of kB/s.
2006-09-13Some changes to the iobuf interface. Remove a debug assert from btpd_if.c andRichard Nyberg
make it act properly on iobuf errors.