29 Commits (eb421cc586f047968763b6e1f595ee5988686690)

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