about summary refs log tree commit diff
path: root/cli
AgeCommit message (Collapse)Author
2009-01-11Update build scripts for recent btpd changes. Also use only one makefile.Richard Nyberg
2009-01-11Make iobuf more useful for io and use better names in its api.Richard Nyberg
2007-05-23Fix the '--topdir' option for single file torrents without a top directory.Richard Nyberg
Such torrents were saved as 'name/name' instead of 'name'. The option broke in rev253. Patch from borg@uu3.net.
2006-10-16Help text format change.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-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-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-06Add command to stop all active torrents. The command is sent byRichard Nyberg
'btcli stop -a'.
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-13btinfo output tweaks.Richard Nyberg
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-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-07-15Fix type mismath. From Arnaud Bergeron.Richard Nyberg
2006-03-20Cut off decimals after the first tenth percent so printf doesn't roundRichard Nyberg
the percentage upwards. Ie. Display 99.9%, not 100.0%, even if we have 99.98% of the content.
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-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-10Mostly name changes. Add a missing include. Changed the torrent statusRichard Nyberg
characters displayed by btcli.
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-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-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.
2005-11-30The mega whitespace patch.Richard Nyberg
Tabs have been converted to spaces and trailing whitespace have been removed. I have fixed my emacs settings now :P
2005-07-30All files:Richard Nyberg
Each piece must have at least one byte for their block bit array, or they will collide causing great confusion in btpd. The calculation was done wrong so this could happen for small torrents (blocks / piece < 8). policy_subr.c: * Add test for correctness. * Add missing call to cm_on_piece_full in cm_new_piece.
2005-07-07Write "1 torrent." instead of "1 torrents.".Richard Nyberg
2005-07-04Must save the old time to be able to calculate the delta.Richard Nyberg
2005-07-03Base bandwidth calculations on actual time between data points,Richard Nyberg
instead of the ideal.
2005-06-24Import btpd-0.1.Richard Nyberg
git-svn-id: file:///home/rnyberg/svngit/btpd/releases/0.1@1 76a1f634-46fa-0310-9943-bd1476092a85