28 Révisions (4457c1268a923d2a662ab23ca1b8d7920811ae51)

Auteur SHA1 Message Date
  Richard Nyberg 9bd0fc6cdc o Rename net_(write|read)32 to (enc|dec)_be32. Add similar functions for 64 il y a 18 ans
  Richard Nyberg b169d038fe Return rates in bytes/s instead of time factor * bytes/s. Clients should il y a 18 ans
  Richard Nyberg 2a462baead Btpd could be DOS'ed by incoming connections that never send any data. il y a 18 ans
  Richard Nyberg 926838a009 o Make the torrent sub struct exist for whole life time of the torrent. il y a 19 ans
  Richard Nyberg 2d21101699 * Move the network related parts of the torrent struct to a sub struct. il y a 19 ans
  Richard Nyberg 2e63eaf8ea Rename p->net to p->in and net_state to input_state. Move code to where it il y a 19 ans
  Richard Nyberg c285b374f8 The mega whitespace patch. il y a 19 ans
  Richard Nyberg 9bfcc80cdd * Added net_(add|del)_torrent. net_add_torrent enables p2p for a torrent il y a 19 ans
  Richard Nyberg 71b986e549 Step one of many to make the sub systems more modular. This commit gets il y a 19 ans
  Richard Nyberg e025c4743a Add a new net state to get the index and begin fields from piece messages il y a 19 ans
  Richard Nyberg 28fcbed3c5 #include <limits.h> to be sure to get IOV_MAX. il y a 19 ans
  Richard Nyberg e982934f6b Remove unused constants. il y a 19 ans
  Richard Nyberg 2bc4a5d83a Constify some functions. il y a 19 ans
  Richard Nyberg 32a88ff5d8 Rewrite of the code for receiving data from peers. il y a 19 ans
  Richard Nyberg 2acdcff5a6 * Rearrange some code. Mostly from net to net_buf and peer. il y a 19 ans
  Richard Nyberg aa50cbe63a Removed the info entry in the net_buf. The information can easily il y a 19 ans
  Richard Nyberg af31e76618 * Don't hold a net_buf on allocation. Do it when it's really needed instead. il y a 19 ans
  Richard Nyberg 4f916d8abd Remove dead code. il y a 19 ans
  Richard Nyberg 9cc1ffda34 Rework the outgoing network buffers. The buffers now contain more il y a 19 ans
  Richard Nyberg fcc9418b92 At each bandwidth call the remaining bandwidht counter is set to limit / hz. il y a 19 ans
  Richard Nyberg f671c4f965 Use the old simpler bandwidth limiter, but run it at a configurable rate. il y a 19 ans
  Richard Nyberg 474c7b5b3a * Better interface between the net and peer code. il y a 19 ans
  Richard Nyberg f8a4999e40 The generic reader didn't have a buffer that was large enough to il y a 19 ans
  Richard Nyberg b529666a82 Use compact mode for tracker requests. il y a 19 ans
  Richard Nyberg 307b9a50aa Before, the count of uploaded torrent data was increases by the block size il y a 19 ans
  Richard Nyberg b84c77f1f7 New algorithm for bandwidth limitation. il y a 19 ans
  Richard Nyberg c375a92236 Rename TAILQ to BTPDQ to avoid macro redefinition, il y a 19 ans
  Richard Nyberg dd0d462afa Import btpd-0.1. il y a 19 ans