Richard Nyberg
|
36076a1466
|
Remove libevent. Btpd no longer uses it.
|
vor 16 Jahren |
Richard Nyberg
|
eb421cc586
|
Btpd now uses evloop, it's own event loop, instead of libevent.
|
vor 16 Jahren |
Richard Nyberg
|
59905999ce
|
Add evloop, btpd's new event loop. This will replace libevent.
|
vor 16 Jahren |
Richard Nyberg
|
4457c1268a
|
Let btpd remove torrent data by itself instead of calling rm.
|
vor 16 Jahren |
Richard Nyberg
|
b5d78b066a
|
Make the http client independent of events and use my iobuf.
|
vor 16 Jahren |
Richard Nyberg
|
3af2b0c0ac
|
Make iobuf more useful for io and use better names in its api.
|
vor 16 Jahren |
Richard Nyberg
|
186113e4ee
|
Add the function memfind. It'll be used by iobuf.
|
vor 16 Jahren |
Richard Nyberg
|
b4be0683e6
|
Add code to connect to host given by its hostname.
|
vor 16 Jahren |
Richard Nyberg
|
a34d4da755
|
Add a thread for performing asynchronous getaddrinfo's.
|
vor 16 Jahren |
Richard Nyberg
|
42c2605dcb
|
Bring back the old thread callback code.
|
vor 16 Jahren |
Richard Nyberg
|
eb0f4388f8
|
More autotool files to ignore.
|
vor 16 Jahren |
Richard Nyberg
|
d8e1d6a492
|
Tell git to ignore files generated by autotools.
|
vor 16 Jahren |
Richard Nyberg
|
1a10f0fb76
|
Fix type mismatches in a couple of printf statements.
|
vor 16 Jahren |
Richard Nyberg
|
19b7e785f5
|
Turn off warnings for pointer sign mismatches.
|
vor 16 Jahren |
Richard Nyberg
|
340fbf4737
|
The "Host" HTTP header should be placed as early as possible and also include
the port number.
|
vor 17 Jahren |
Richard Nyberg
|
1758597e3e
|
Recognize both the CRLF sequence and single LF characters as line terminators.
|
vor 17 Jahren |
Richard Nyberg
|
ff76e2bf6c
|
Add libraries in the correct place.
|
vor 17 Jahren |
Richard Nyberg
|
9a08fda26e
|
Create the peer id and random seed based on the host name, port and
the time of the initialization in seconds and microseconds.
|
vor 17 Jahren |
Richard Nyberg
|
46fb0c2419
|
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.
Patch from borg@uu3.net.
|
vor 18 Jahren |
Richard Nyberg
|
8f4fde49ee
|
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.
Reported by Robert Jonsson.
|
vor 18 Jahren |
Richard Nyberg
|
2886768d30
|
Clean up the #include sections in the btpd files. Most common headers and
all btpd headers are included through btpd.h.
|
vor 18 Jahren |
Richard Nyberg
|
e8a5b6cf28
|
Added some more info to CHANGES and version information to README.
|
vor 18 Jahren |
Richard Nyberg
|
24c2c1cd4a
|
#include order.
|
vor 18 Jahren |
Richard Nyberg
|
7c2b7b656e
|
Fix problem introduced in r345. A call to http_get could cause the
callback to be called before http_get returned.
|
vor 18 Jahren |
Richard Nyberg
|
630f11d18b
|
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.
|
vor 18 Jahren |
Richard Nyberg
|
f26afae214
|
Fix from libevent r353.
|
vor 18 Jahren |
Richard Nyberg
|
84ae36cd2b
|
Only keep one block of outgoing data in memory.
|
vor 18 Jahren |
Richard Nyberg
|
771e649c41
|
Don't try to resolve the host if it is already given as an ip address.
|
vor 18 Jahren |
Richard Nyberg
|
098664da9a
|
btpd doesn't need pthreads and curl, and libevent is included. Scratch
the dependencies from the README.
|
vor 18 Jahren |
Richard Nyberg
|
bac7eb9249
|
Changes for 0.13.
|
vor 18 Jahren |
Richard Nyberg
|
796e706974
|
Update the info files regularly. Before they were only updated when a torrent
stopped.
|
vor 18 Jahren |
Richard Nyberg
|
5e09c5b127
|
Update for 2007.
|
vor 18 Jahren |
Richard Nyberg
|
3c59bb01e2
|
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.
|
vor 18 Jahren |
Richard Nyberg
|
9bd0fc6cdc
|
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.
|
vor 18 Jahren |
Richard Nyberg
|
c8ab530c95
|
Some code for udp trackers. Not done yet, so it isn't hooked to the build.
|
vor 18 Jahren |
Richard Nyberg
|
b2fd196e12
|
Update to libevent-1.3b.
|
vor 18 Jahren |
Richard Nyberg
|
564fe5afe1
|
Some better logging.
|
vor 18 Jahren |
Richard Nyberg
|
91f85c222b
|
Update to libevent from patches-1.3 r335.
|
vor 18 Jahren |
Richard Nyberg
|
372cec7b53
|
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.
|
vor 18 Jahren |
Richard Nyberg
|
02733b16ec
|
Get rid of tp->relpath.
|
vor 18 Jahren |
Richard Nyberg
|
e117d81cf3
|
Only trigger error handling if an error actually occured. :P
|
vor 18 Jahren |
Richard Nyberg
|
8d7898d728
|
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.
|
vor 18 Jahren |
Richard Nyberg
|
d00d1fc36a
|
Call peer_on_no_reqs at the appropriate time.
|
vor 18 Jahren |
Richard Nyberg
|
12c3181b65
|
Add an option to specify the ip the tracker should distribute for this peer.
|
vor 18 Jahren |
Richard Nyberg
|
eeb9d252e1
|
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.
|
vor 18 Jahren |
Richard Nyberg
|
68c4f99b29
|
Fix evbuffer_add_vprintf. Patch taken from <http://monkeymail.org/archives/libevent-users/2006-October/000299.html>.
|
vor 18 Jahren |
Richard Nyberg
|
6fbf0b520f
|
Fix return value from evdns_resolv_conf_parse and initialization of the
dns transaction id.
|
vor 18 Jahren |
Richard Nyberg
|
393ee77bbc
|
Update COPYRIGHT to match the current copyrights and licenses in the btpd
package.
|
vor 18 Jahren |
Richard Nyberg
|
352ed70600
|
Update the build scripts for the following events:
o Some new source files.
o Inclusion of libevent.
o Removal of curl and pthreads dependencies.
|
vor 18 Jahren |
Richard Nyberg
|
95371d8453
|
Remove files not needed by btpd. Make the build scripts more suitable for
btpd.
|
vor 18 Jahren |