29 коммитов (eb421cc586f047968763b6e1f595ee5988686690)

Автор SHA1 Сообщение Дата
  Richard Nyberg eb421cc586 Btpd now uses evloop, it's own event loop, instead of libevent. 16 лет назад
  Richard Nyberg 2886768d30 Clean up the #include sections in the btpd files. Most common headers and 18 лет назад
  Richard Nyberg 9bd0fc6cdc o Rename net_(write|read)32 to (enc|dec)_be32. Add similar functions for 64 18 лет назад
  Richard Nyberg 564fe5afe1 Some better logging. 18 лет назад
  Richard Nyberg e117d81cf3 Only trigger error handling if an error actually occured. :P 18 лет назад
  Richard Nyberg 8d7898d728 o Make errors when reading or writing torrent data non fatal. Instead of 18 лет назад
  Richard Nyberg 95e83bb247 Make the content code unthreaded and remove the no longer needed inter 19 лет назад
  Richard Nyberg b0b50e29b6 Create all files of a torrent at startup. 19 лет назад
  Richard Nyberg 45bf9f2658 Allow empty files in torrents. Create them in stat_and_adjust and let the 19 лет назад
  Richard Nyberg 86754d7d53 btpd now has a library of torrents indexed by number and info hash. 19 лет назад
  Richard Nyberg ed56df9e56 Use the new functions btpd_ev_(add|del) instead of calling event_(add|del) 19 лет назад
  Richard Nyberg db49763849 The previous commit was a bit over zealous; the block field should not be 19 лет назад
  Richard Nyberg b72b6bb8ba The code for testing content that has potentially been modified between btpd 19 лет назад
  Richard Nyberg eb85993c8c Don't allow a negative cm_alloc_size to wreak havoc. 19 лет назад
  Richard Nyberg bcac74d138 Safer type use. 19 лет назад
  Richard Nyberg 9decd35436 Oops! Forgot to free some memory. 19 лет назад
  Richard Nyberg c865aa9254 Use c99 types conservatively to compile on OpenBSD. Also convert to or from 19 лет назад
  Richard Nyberg b43809ba55 Mostly name changes. Add a missing include. Changed the torrent status 19 лет назад
  Richard Nyberg 31f0e727df Add torrent_name function and use it. 19 лет назад
  Richard Nyberg 926838a009 o Make the torrent sub struct exist for whole life time of the torrent. 19 лет назад
  Richard Nyberg 2550d6cb8c Interaction with btpd is now much more like I want it. Previous work 19 лет назад
  Richard Nyberg 44165a86d0 o Fixed: cm->active was not set to 0 in cm_stop. 19 лет назад
  Richard Nyberg e99facbeec Don't clear the bitfield for blocks it's possible we have, even though 19 лет назад
  Richard Nyberg 7068f34a51 * Implemented the full cm_ life cycle. 19 лет назад
  Richard Nyberg b2a877537a White space. 19 лет назад
  Richard Nyberg d324b49aaf Implemented a service thread for operations such as testing piece hashes, 19 лет назад
  Richard Nyberg 2d21101699 * Move the network related parts of the torrent struct to a sub struct. 19 лет назад
  Richard Nyberg 350f8adc2d Rename tp->cp to tp->cm. 19 лет назад
  Richard Nyberg 56320bce47 New api for managing the content of a torrent. It'll keep track of which 19 лет назад