summary refs log tree commit diff
path: root/misc
AgeCommit message (Collapse)Author
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.
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-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-01-22Added vfsync and vfopen.Richard Nyberg
2006-01-17White space.Richard Nyberg