summary refs log tree commit diff
path: root/misc
AgeCommit message (Collapse)Author
2009-02-06Hashtable tweaks.Richard Nyberg
o Added ability to set the ratio items:buckets. o One can remove items while iterating. o _htbl_tov now allocates the result array, _htbl_fillv acts as the old _htbl_tov did.
2009-01-26Show tracker counts in btcli stat.Richard Nyberg
The counts are for "reachable" trackers, ie. trackers that haven't timed out or been disabled for one reason or other.
2009-01-26Improve the torrent stop and btpd shutdown sequences.Richard Nyberg
Torrents are now considered stopped and may be restarted even if the stop event haven't been sent the trackers yet. The same holds for the del and add commands. A btpd process in shutdown mode that only have stopped torrents, but is still sending the stop event to trackers, will release resources that would block a new btpd to start. It will the silently exit when it's finished with the trackers. This also makes the timeout parameter for shutdown unnecessary.
2009-01-12Provide own implementation of asprintf if it's missing.Richard Nyberg
2009-01-12Remove unnecessary include.Richard Nyberg
2009-01-12On solaris bcopy and some other useful functions are declared in strings.h.Richard Nyberg
2009-01-11Update build scripts for recent btpd changes. Also use only one makefile.Richard Nyberg
2009-01-11Make the http client independent of events and use my iobuf.Richard Nyberg
2009-01-11Make iobuf more useful for io and use better names in its api.Richard Nyberg
2009-01-11Add the function memfind. It'll be used by iobuf.Richard Nyberg
2007-07-01The "Host" HTTP header should be placed as early as possible and also includeRichard Nyberg
the port number.
2007-07-01Recognize both the CRLF sequence and single LF characters as line terminators.Richard Nyberg
2007-05-21Fix bug in benc_length. benc_first shouldn't be used here since it returnsRichard Nyberg
NULL on empty lists or dictionaries. This could cause crashes. Reported by Robert Jonsson.
2007-05-19Fix problem introduced in r345. A call to http_get could cause theRichard Nyberg
callback to be called before http_get returned.
2007-05-19Don't try to resolve the host if it is already given as an ip address.Richard Nyberg
2007-05-18o Rename net_(write|read)32 to (enc|dec)_be32. Add similar functions for 64Richard Nyberg
bits as well. Implement them in libmisc instead of in btpd. o Change resume file format and related APIs. The resume files are now memory mapped.
2006-11-08Update the build scripts for the following events:Richard Nyberg
o Some new source files. o Inclusion of libevent. o Removal of curl and pthreads dependencies.
2006-11-06Remove a couple of forgotten debug printfs.Richard Nyberg
2006-11-02Add bts_filename which gets the current filename from a bt_stream.Richard Nyberg
2006-10-31Some cleanup. Use names for some numeric constants.Richard Nyberg
2006-10-31Rename callback type, add timeouts and and allow any http version in theRichard Nyberg
reply.
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-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-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-14Update for the read_whole_file -> read_file change.Richard Nyberg
2006-10-14Simplify read_whole_file and rename to read_file.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-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-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-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-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-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.
2006-09-12Moved from ../btpd/queue.hRichard Nyberg
2006-09-12Add functions for conversions between binary data and ascii hex.Richard Nyberg
Add function for reading a whole file. Enable printf format checking for some functions.
2006-09-12Add a hashtable implementation.Richard Nyberg
2006-09-12Enable printf format type checking for buf_print.Richard Nyberg
2006-09-12Add function benc_strlen.Richard Nyberg
2006-02-10Use c99 types conservatively to compile on OpenBSD. Also convert to or fromRichard Nyberg
time_t via long.