about summary refs log tree commit diff
AgeCommit message (Collapse)Author
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.
2006-09-13Move the td_* functions to their own file. Remove lots of unneeded includes.Richard Nyberg
2006-09-13Implement the "key" tracker extension.Richard Nyberg
2006-09-13Enable printf format type checking.Richard Nyberg
2006-09-13Implement the multitracker extension. Removed checks for URLs thatRichard Nyberg
btpd can handle for now, so if no such URLs exists there will be a lot of tracker errors reported.
2006-09-13btinfo output tweaks.Richard Nyberg
2006-09-13No need to have the net structs on a list. Fix a test for finding a torrentRichard Nyberg
with active net.
2006-09-13btpd now has a library of torrents indexed by number and info hash.Richard Nyberg
The add and del commands adds or removes torrents from this library. The start and stop commands are used to active or deactivate torrents. Also, a mechanism for qeurying data on torrents has been added. It's only used by the btcli list and stat commands yet though. btcli has been split into different files for each command. Both btpd and btcli now use misc/btpd_if.h for all ipc definitions. Misc changes: - struct metainfo is gone. Use the new mi_* functions. - Add printf format type checking where appropriate.
2006-09-12Hook the new files to the build.Richard Nyberg
2006-09-12Pointers to different things need not be represented in the same way.Richard Nyberg
Use the fact that we only can store structs in the table to make the complex pointer use safe. Unfortunately the equal and hash functions need to take void * arguments.
2006-09-12This file contains the definitions of the constants used in the btpdRichard Nyberg
interface.
2006-09-12Moved from ../cli.Richard Nyberg
2006-09-12Moved to ../misc.Richard Nyberg
2006-09-12The btpd interface now consists of these commands:Richard Nyberg
add - adds a torrent to btpd's library del - removes a torrent from btpd's library start - activates a torrent from the library stop - deactivates an active torrent tget - get data from torrents tget obsoletes stat and list. Commands for setting values and query other data will be added later.
2006-09-12Remove unused function bts_hashes.Richard Nyberg
2006-09-12There is no spoon^H^H^H^Htruct metainfo. Use struct mi_file instead.Richard Nyberg
2006-09-12The metainfo code provided a load -> test -> struct metainfo interface.Richard Nyberg
The metainfo struct has been replaced by functions for qeurying specific items from the torrent. In addition, the tests of the torrent data has been improved.