274 Commits (029704f03aaa0df756cf9049dd7f58a6a302620d)

Autor SHA1 Nachricht Datum
  Richard Nyberg 03c3b7ec49 Split the tracker code into a generic part and a http specific part. This vor 18 Jahren
  Richard Nyberg f939819e28 No parenthesis needed around a string value. vor 18 Jahren
  Richard Nyberg 4f1d44297a Don't really know why I did setlocale. Get rid of it since I want the CTYPE vor 18 Jahren
  Richard Nyberg 1a17b22bb3 Don't call mkdirs unnecessarily. Note that this code is only needed because vor 18 Jahren
  Richard Nyberg cd8a3d5ecd Make mkdirs behave more like 'mkdir -p' and make btpd create the directory vor 18 Jahren
  Richard Nyberg 110b1d7e22 Always update the tlib info when a torrent is stopped. Some code shuffle. vor 18 Jahren
  Richard Nyberg 25788505fa Forgot to free some memory. Remove some broken code; it wasn't needed vor 18 Jahren
  Richard Nyberg b0b50e29b6 Create all files of a torrent at startup. vor 18 Jahren
  Richard Nyberg 0b9d19de09 Add missing include. vor 18 Jahren
  Richard Nyberg 11f7e1ce1f Safer way to initialize the address. vor 18 Jahren
  Richard Nyberg 45bf9f2658 Allow empty files in torrents. Create them in stat_and_adjust and let the vor 18 Jahren
  Richard Nyberg a087071b45 Make the del command work for active torrents too. vor 18 Jahren
  Richard Nyberg e652eefa26 Add value queries for total amount up- and downloaded. Use the cached values vor 18 Jahren
  Richard Nyberg 7ae55cac4d Save the total amount down- and uploaded and cache the torrent size and the vor 18 Jahren
  Richard Nyberg 326dc406e7 Remove unneeded braces. vor 18 Jahren
  Richard Nyberg ba9ae40fe7 Add command to stop all active torrents. The command is sent by vor 18 Jahren
  Richard Nyberg b169d038fe Return rates in bytes/s instead of time factor * bytes/s. Clients should vor 18 Jahren
  Richard Nyberg a5ae3e120f Some changes to the iobuf interface. Remove a debug assert from btpd_if.c and vor 18 Jahren
  Richard Nyberg e33b8a57e6 Move the td_* functions to their own file. Remove lots of unneeded includes. vor 18 Jahren
  Richard Nyberg fd7d7fca08 Implement the "key" tracker extension. vor 18 Jahren
  Richard Nyberg 0c9cc2aa1d Enable printf format type checking. vor 18 Jahren
  Richard Nyberg 1911f326a6 Implement the multitracker extension. Removed checks for URLs that vor 18 Jahren
  Richard Nyberg 2c15b5701f No need to have the net structs on a list. Fix a test for finding a torrent vor 18 Jahren
  Richard Nyberg 86754d7d53 btpd now has a library of torrents indexed by number and info hash. vor 18 Jahren
  Richard Nyberg fc20273a80 Moved to ../misc/queue.h vor 18 Jahren
  Richard Nyberg c4379cdfb9 Send keepalives. vor 18 Jahren
  Richard Nyberg 1f4ef6cb15 Reduce the number of HAVE messages sent by only sending them to peers missing vor 18 Jahren
  Richard Nyberg e0877d2870 Torrents that were active when btpd was last killed will now be automatically vor 18 Jahren
  Richard Nyberg 251b5d2e18 Add a delay for contacting the same announce url. This way we don't spam vor 18 Jahren
  Richard Nyberg 7ce1098dff Remove the events for a peer's socket before closing it. At least the epoll vor 18 Jahren
  Richard Nyberg 336a4d4c02 Changed the help for the '--ipcprot' option. vor 18 Jahren
  Richard Nyberg 2e073c13f2 Truncate the pid file when opening it. Now it actually will contain the pid vor 18 Jahren
  Richard Nyberg 2285473192 Make sure btpd_dir contains an absolute path. If btpd was started with vor 18 Jahren
  Richard Nyberg 7810b15cfd Add the '--ipcprot' option to change the protection mode of the command vor 18 Jahren
  Richard Nyberg 2a462baead Btpd could be DOS'ed by incoming connections that never send any data. vor 18 Jahren
  Richard Nyberg cfb37a5227 Split out common code for btpd_log and btpd_err. vor 18 Jahren
  Richard Nyberg ed56df9e56 Use the new functions btpd_ev_(add|del) instead of calling event_(add|del) vor 18 Jahren
  Richard Nyberg db49763849 The previous commit was a bit over zealous; the block field should not be vor 19 Jahren
  Richard Nyberg b72b6bb8ba The code for testing content that has potentially been modified between btpd vor 19 Jahren
  Richard Nyberg cdb471d0ac Fix a bug from the last commit: shared messages for endgame requests could vor 19 Jahren
  Richard Nyberg 9f4070eeb8 There's now one list with requests per piece instead of one per block. The vor 19 Jahren
  Richard Nyberg 6214255bbb Safer code for net_read32 and net_write32. It may have been possible for them vor 19 Jahren
  Richard Nyberg f219b47a33 Set default value of cm_alloc_size to 2MB. vor 19 Jahren
  Richard Nyberg 1b3c4e7c05 Set its rates to zero when stopping a torrent. vor 19 Jahren
  Richard Nyberg eb85993c8c Don't allow a negative cm_alloc_size to wreak havoc. vor 19 Jahren
  Richard Nyberg 2ee5eed062 Return possible error message in the http result. Log the error in the vor 19 Jahren
  Richard Nyberg 61752ade71 Change preallocation default to 2048. 1 may be a little low. vor 19 Jahren
  Richard Nyberg bcac74d138 Safer type use. vor 19 Jahren
  Richard Nyberg b61b04f258 Fix typo. vor 19 Jahren
  Richard Nyberg 88aa2eeb63 Better log message. vor 19 Jahren