186113e
Add the function memfind. It'll be used by iobuf. by
2009-01-11 00:30:39 +0100
b4be068
Add code to connect to host given by its hostname. by
2008-12-25 12:59:28 +0100
a34d4da
Add a thread for performing asynchronous getaddrinfo's. by
2008-12-23 23:35:07 +0100
42c2605
Bring back the old thread callback code. by
2008-12-23 19:20:14 +0100
eb0f438
More autotool files to ignore. by
2009-01-08 02:49:55 +0100
d8e1d6a
Tell git to ignore files generated by autotools. by
2008-12-23 18:32:53 +0100
1a10f0f
Fix type mismatches in a couple of printf statements. by
2008-12-22 23:35:39 +0100
19b7e78
Turn off warnings for pointer sign mismatches. by
2008-12-22 23:34:39 +0100
340fbf4
The "Host" HTTP header should be placed as early as possible and also include the port number. by
2007-07-01 14:48:46 +0000
1758597
Recognize both the CRLF sequence and single LF characters as line terminators. by
2007-07-01 14:44:57 +0000
ff76e2b
Add libraries in the correct place. by
2007-06-20 17:32:09 +0000
9a08fda
Create the peer id and random seed based on the host name, port and the time of the initialization in seconds and microseconds. by
2007-06-20 15:53:44 +0000
46fb0c2
Fix the '--topdir' option for single file torrents without a top directory. Such torrents were saved as 'name/name' instead of 'name'. The option broke in rev253. by
2007-05-23 08:20:28 +0000
8f4fde4
Fix bug in benc_length. benc_first shouldn't be used here since it returns NULL on empty lists or dictionaries. This could cause crashes. by
2007-05-21 13:31:09 +0000
2886768
Clean up the #include sections in the btpd files. Most common headers and all btpd headers are included through btpd.h. by
2007-05-20 14:43:40 +0000
e8a5b6c
Added some more info to CHANGES and version information to README. by
2007-05-19 20:48:59 +0000
24c2c1c
#include order. by
2007-05-19 20:36:58 +0000
7c2b7b6
Fix problem introduced in r345. A call to http_get could cause the callback to be called before http_get returned. by
2007-05-19 15:58:11 +0000
630f11d
I had missed a check for tracker errors. When a torrent is stopping it's supposed to stop if it can't contact the tracker in STOP_ERRORS tries. by
2007-05-19 15:53:07 +0000
f26afae
Fix from libevent r353. by
2007-05-19 15:33:03 +0000
84ae36c
Only keep one block of outgoing data in memory. by
2007-05-19 13:07:57 +0000
771e649
Don't try to resolve the host if it is already given as an ip address. by
2007-05-19 13:06:37 +0000
098664d
btpd doesn't need pthreads and curl, and libevent is included. Scratch the dependencies from the README. by
2007-05-19 09:12:56 +0000
bac7eb9
Changes for 0.13. by
2007-05-19 09:04:10 +0000
796e706
Update the info files regularly. Before they were only updated when a torrent stopped. by
2007-05-19 08:43:33 +0000
5e09c5b
Update for 2007. by
2007-05-19 08:34:57 +0000
3c59bb0
Set torrent deletion flag as parameter to torrent_stop. Update torrent info in torrent_stop rather than torrent_kill. The data doesn't change but there may be some time between the two events. by
2007-05-18 20:53:51 +0000
9bd0fc6
o Rename net_(write|read)32 to (enc|dec)_be32. Add similar functions for 64 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. by
2007-05-18 13:45:03 +0000
c8ab530
Some code for udp trackers. Not done yet, so it isn't hooked to the build. by
2007-05-18 08:15:38 +0000
b2fd196
Update to libevent-1.3b. by
2007-05-18 07:45:19 +0000
564fe5a
Some better logging. by
2007-02-25 17:38:21 +0000
91f85c2
Update to libevent from patches-1.3 r335. by
2007-02-25 17:34:12 +0000
372cec7
Some clean up of the values sent for tget answers. Send values that makes sense instead of errors. Fix wrong type for IPC_TVAL_CSIZE, reported by Arnaud Bergeron. by
2007-02-24 22:30:12 +0000
02733b1
Get rid of tp->relpath. by
2007-02-24 21:49:31 +0000
e117d81
Only trigger error handling if an error actually occured. :P by
2007-02-24 21:22:55 +0000
8d7898d
o Make errors when reading or writing torrent data non fatal. Instead of killing btpd, only the troublesome torrent will be stopped. o Some code shuffle. by
2007-02-24 19:59:48 +0000
d00d1fc
Call peer_on_no_reqs at the appropriate time. by
2007-01-30 17:13:24 +0000
12c3181
Add an option to specify the ip the tracker should distribute for this peer. by
2006-11-15 13:30:39 +0000
eeb9d25
Fix bug in get_op. Increase the tracker error counter, and reduce the timeout for trying the next url, for url's that we can't use. The timeout is in this case just there to keep btpd from busy looping on a bad url. by
2006-11-15 11:21:27 +0000
68c4f99
Fix evbuffer_add_vprintf. Patch taken from <http://monkeymail.org/archives/libevent-users/2006-October/000299.html>. by
2006-11-08 14:29:10 +0000
6fbf0b5
Fix return value from evdns_resolv_conf_parse and initialization of the dns transaction id. by
2006-11-08 14:19:02 +0000
393ee77
Update COPYRIGHT to match the current copyrights and licenses in the btpd package. by
2006-11-08 09:12:19 +0000
352ed70
Update the build scripts for the following events: o Some new source files. o Inclusion of libevent. o Removal of curl and pthreads dependencies. by
2006-11-08 09:01:48 +0000
95371d8
Remove files not needed by btpd. Make the build scripts more suitable for btpd. by
2006-11-08 08:54:49 +0000
ba4efec
Bring in fixes from libevent trunk. by
2006-11-07 20:04:15 +0000
5ccf414
Include libevent 1.2 in btpd. by
2006-11-07 09:40:25 +0000
568d116
Remove a couple of forgotten debug printfs. by
2006-11-06 20:39:10 +0000
8c5200b
Instead of immediately reading all data a peer requests into outgoing net buffers, we put placeholder buffers on the list and fill them as they are needed. At most 4 blocks will be filled per peer we upload to. This number should probably be made tunable or be based on SO_SNDBUF or something. Anyway, this should lower btpd's memory usage if one has many uploads. by
2006-11-06 08:48:22 +0000
acc03a9
Must call next_url if the current url cannot be requested. by
2006-11-04 12:58:24 +0000
3bb3d2c
Initialize the interval variable even when we don't read its value from the tracker reply. by
2006-11-03 17:23:51 +0000
db7f22d
Avoid unnecessary operations on tracker stop. Use STOP_ERRORS constant for the number of tracker errors to tolerate when we're stopping. by
2006-11-03 17:20:41 +0000
ebef96d
Missed this file in the last commit. Simplify some interfaces by polling for state changes when appropriate instead of being called directly at any time. by
2006-11-03 09:11:33 +0000
95e83bb
Make the content code unthreaded and remove the no longer needed inter thread messaging code. Also simplify some interfaces by polling for state changes when appropriate instead of being called directly at any time. by
2006-11-03 08:59:48 +0000
00e242c
Add bts_filename which gets the current filename from a bt_stream. by
2006-11-02 21:03:56 +0000
abe4001
Add initialization of evdns. by
2006-10-31 19:34:25 +0000
fb64d69
Now that btpd doesn't use select, we don't need to limit fd's to FD_SETSIZE unless libevent uses the select method. by
2006-10-31 19:32:04 +0000
4466a51
Remove calls to the already removed old http code. by
2006-10-31 19:28:58 +0000
1d7b396
Some cleanup. Use names for some numeric constants. by
2006-10-31 19:21:17 +0000
03c3b7e
Split the tracker code into a generic part and a http specific part. This allows me to add code for other types of trackers. by
2006-10-31 10:21:17 +0000
80dcfec
Rename callback type, add timeouts and and allow any http version in the reply. by
2006-10-31 10:09:37 +0000
f939819
No parenthesis needed around a string value. by
2006-10-31 10:07:38 +0000
d5700c2
Add max(x, y) macro. by
2006-10-31 10:03:49 +0000
1b7bb76
Add a simple http client. Since it uses libevent it's a better fit for btpd than curl. by
2006-10-29 14:54:21 +0000
4f1d442
Don't really know why I did setlocale. Get rid of it since I want the CTYPE to be standard. by
2006-10-26 17:21:39 +0000
798a7f0
Random changes :) by
2006-10-16 15:53:28 +0000
e0c4fea
Rewrote parts of the README and updated it with information on the new stuff in 0.12. by
2006-10-16 15:00:31 +0000
0c01e27
Help text format change. by
2006-10-16 14:19:01 +0000
1a17b22
Don't call mkdirs unnecessarily. Note that this code is only needed because the content code shuts down btpd on errors. When that is fixed this code can be removed. by
2006-10-15 15:31:17 +0000
cd8a3d5
Make mkdirs behave more like 'mkdir -p' and make btpd create the directory hierarchy to a specified torrent content directory if neccessary. by
2006-10-15 15:12:28 +0000
ff3f222
OpenBSD doesn't have stdint.h. It'd be great if they would implement basic c99 library support some day... by
2006-10-15 15:08:17 +0000
f20c481
There's no need to fsync here, so remove the call. This should improve write performance. by
2006-10-15 09:27:21 +0000
110b1d7
Always update the tlib info when a torrent is stopped. Some code shuffle. by
2006-10-15 09:04:49 +0000
29495ab
Add and use the function make_abs_path. realpath didn't fit my needs. make_abs_path doesn't need the directories to actually exist in the file system. by
2006-10-14 21:29:25 +0000
2578850
Forgot to free some memory. Remove some broken code; it wasn't needed yet anyway. glibc doesn't have the d_namlen field in struct dirent, so we'll have to use strlen instead. by
2006-10-14 20:00:38 +0000
b306439
Update for the read_whole_file -> read_file change. by
2006-10-14 19:55:15 +0000
b0b50e2
Create all files of a torrent at startup. by
2006-10-14 19:53:56 +0000
0b9d19d
Add missing include. by
2006-10-14 19:46:48 +0000
11f7e1c
Safer way to initialize the address. by
2006-10-14 19:46:21 +0000
3fb4e5a
Simplify read_whole_file and rename to read_file. by
2006-10-14 19:43:14 +0000
51e084f
Document changes for 0.12. by
2006-10-12 15:27:41 +0000
535991f
Bump version to 0.12. by
2006-10-12 15:27:12 +0000
45bf9f2
Allow empty files in torrents. Create them in stat_and_adjust and let the stream abstraction skip past them. by
2006-10-12 14:21:42 +0000
a781e02
Add missing includes. by
2006-10-12 12:06:17 +0000
e1687be
A string wasn't properly zero terminated. by
2006-10-11 11:39:48 +0000
d218b1c
Add missing include. by
2006-10-11 11:34:53 +0000
a087071
Make the del command work for active torrents too. by
2006-10-08 09:12:29 +0000
a497ca4
Help text changes and make del and start take the --help option. by
2006-10-07 13:16:27 +0000
0eb36d3
btcli list now displays size, ratio and the percentage got of torrents. 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. by
2006-10-07 10:21:01 +0000
e652eef
Add value queries for total amount up- and downloaded. Use the cached values for torrent size and amount gotten when the torrent isn't active. by
2006-10-07 09:47:07 +0000
7ae55ca
Save the total amount down- and uploaded and cache the torrent size and the amount we have in the info file. by
2006-10-07 09:45:03 +0000
326dc40
Remove unneeded braces. by
2006-10-06 15:04:54 +0000
ba9ae40
Add command to stop all active torrents. The command is sent by 'btcli stop -a'. by
2006-10-06 15:02:35 +0000
3060188
Whitespace. by
2006-09-17 09:01:38 +0000
00db1f1
Add function benc_strcmp. by
2006-09-17 08:29:05 +0000
ce0ef9d
Better message for ENOTENT. by
2006-09-17 08:26:39 +0000
311a05f
btcli add now starts the torrent if not told otherwise. Soem cleanup and improved error output. by
2006-09-17 08:19:31 +0000
b169d03
Return rates in bytes/s instead of time factor * bytes/s. Clients should not need to know about the sample time. by
2006-09-16 10:50:00 +0000
b0d013a
Make tests for unit changes to take rounding into account. by
2006-09-16 10:33:35 +0000
2483f77
Reprint the header at suitable intervals. Display sizes >= 1000MB in gigs instead of megs. Similarily, display rates >= 1000kB/s in MB/s instead of kB/s. by
2006-09-16 10:08:25 +0000
a5ae3e1
Some changes to the iobuf interface. Remove a debug assert from btpd_if.c and make it act properly on iobuf errors. by
2006-09-13 20:13:44 +0000