29 Commits (eb421cc586f047968763b6e1f595ee5988686690)

Autor SHA1 Nachricht Datum
  Richard Nyberg eb421cc586 Btpd now uses evloop, it's own event loop, instead of libevent. vor 16 Jahren
  Richard Nyberg 2886768d30 Clean up the #include sections in the btpd files. Most common headers and vor 18 Jahren
  Richard Nyberg 9bd0fc6cdc o Rename net_(write|read)32 to (enc|dec)_be32. Add similar functions for 64 vor 18 Jahren
  Richard Nyberg 564fe5afe1 Some better logging. 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 vor 18 Jahren
  Richard Nyberg 95e83bb247 Make the content code unthreaded and remove the no longer needed inter vor 19 Jahren
  Richard Nyberg b0b50e29b6 Create all files of a torrent at startup. vor 19 Jahren
  Richard Nyberg 45bf9f2658 Allow empty files in torrents. Create them in stat_and_adjust and let the vor 19 Jahren
  Richard Nyberg 86754d7d53 btpd now has a library of torrents indexed by number and info hash. vor 19 Jahren
  Richard Nyberg ed56df9e56 Use the new functions btpd_ev_(add|del) instead of calling event_(add|del) vor 19 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 eb85993c8c Don't allow a negative cm_alloc_size to wreak havoc. vor 19 Jahren
  Richard Nyberg bcac74d138 Safer type use. vor 19 Jahren
  Richard Nyberg 9decd35436 Oops! Forgot to free some memory. vor 19 Jahren
  Richard Nyberg c865aa9254 Use c99 types conservatively to compile on OpenBSD. Also convert to or from vor 19 Jahren
  Richard Nyberg b43809ba55 Mostly name changes. Add a missing include. Changed the torrent status vor 19 Jahren
  Richard Nyberg 31f0e727df Add torrent_name function and use it. vor 19 Jahren
  Richard Nyberg 926838a009 o Make the torrent sub struct exist for whole life time of the torrent. vor 19 Jahren
  Richard Nyberg 2550d6cb8c Interaction with btpd is now much more like I want it. Previous work vor 19 Jahren
  Richard Nyberg 44165a86d0 o Fixed: cm->active was not set to 0 in cm_stop. vor 19 Jahren
  Richard Nyberg e99facbeec Don't clear the bitfield for blocks it's possible we have, even though vor 19 Jahren
  Richard Nyberg 7068f34a51 * Implemented the full cm_ life cycle. vor 19 Jahren
  Richard Nyberg b2a877537a White space. vor 19 Jahren
  Richard Nyberg d324b49aaf Implemented a service thread for operations such as testing piece hashes, vor 19 Jahren
  Richard Nyberg 2d21101699 * Move the network related parts of the torrent struct to a sub struct. vor 19 Jahren
  Richard Nyberg 350f8adc2d Rename tp->cp to tp->cm. vor 19 Jahren
  Richard Nyberg 56320bce47 New api for managing the content of a torrent. It'll keep track of which vor 19 Jahren