60 коммитов (1f4ef6cb15485a56c4a37ce6ac93fd40a8de684d)

Автор SHA1 Сообщение Дата
  Richard Nyberg 2a462baead Btpd could be DOS'ed by incoming connections that never send any data. 19 лет назад
  Richard Nyberg ed56df9e56 Use the new functions btpd_ev_(add|del) instead of calling event_(add|del) 19 лет назад
  Richard Nyberg 6214255bbb Safer code for net_read32 and net_write32. It may have been possible for them 19 лет назад
  Richard Nyberg 1b3c4e7c05 Set its rates to zero when stopping a torrent. 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 9af6e55081 * Better message when trying to start btpd in a driectory where it's already 19 лет назад
  Richard Nyberg 49da7acdd4 Fix conditional I broke in r131. 20 лет назад
  Richard Nyberg 2d21101699 * Move the network related parts of the torrent struct to a sub struct. 20 лет назад
  Richard Nyberg 2e63eaf8ea Rename p->net to p->in and net_state to input_state. Move code to where it 20 лет назад
  Richard Nyberg 49e90df57e o Use the new cm_* content api. 20 лет назад
  Richard Nyberg 0cbe077098 Don't write the rates to the log anymore. 20 лет назад
  Richard Nyberg c347106fc1 * Some code shuffle and removal of dead code. 20 лет назад
  Richard Nyberg 00fc2ce31e Rates should be unsigned long. Compute total, torrent and peer rates. 20 лет назад
  Richard Nyberg c285b374f8 The mega whitespace patch. 20 лет назад
  Richard Nyberg 9bfcc80cdd * Added net_(add|del)_torrent. net_add_torrent enables p2p for a torrent 20 лет назад
  Richard Nyberg a01ffd8423 * Get rid of net_bw_hz and run the bw stuff at one hz. 20 лет назад
  Richard Nyberg 71b986e549 Step one of many to make the sub systems more modular. This commit gets 20 лет назад
  Richard Nyberg e025c4743a Add a new net state to get the index and begin fields from piece messages 20 лет назад
  Richard Nyberg 0cae0e478d Have a peer event for keep alives too. Its only function is to log atm. 20 лет назад
  Richard Nyberg 87f94f9d5f Log keep alives. 20 лет назад
  Richard Nyberg 28fcbed3c5 #include <limits.h> to be sure to get IOV_MAX. 20 лет назад
  Richard Nyberg 2dc98c39b6 Fix two bugs. Add some logging. 20 лет назад
  Richard Nyberg 80214ff0fb Code shuffle. 20 лет назад
  Richard Nyberg 9ba7dc69fc Put the net state related data in its own sub struct. 20 лет назад
  Richard Nyberg 2bc4a5d83a Constify some functions. 20 лет назад
  Richard Nyberg 062d08cb60 net_state should return ssize_t not int. 20 лет назад
  Richard Nyberg f963072983 Better method of reading data from peers. btpd could send data to peers 20 лет назад
  Richard Nyberg 32a88ff5d8 Rewrite of the code for receiving data from peers. 20 лет назад
  Richard Nyberg d5bf714f1d More logging. 20 лет назад
  Richard Nyberg eaf95339c7 Set an upper limit on how many piece messages to queue for 20 лет назад
  Richard Nyberg 2acdcff5a6 * Rearrange some code. Mostly from net to net_buf and peer. 20 лет назад
  Richard Nyberg e485377f95 The fix for bitfield in r59 wasn't quite correct. Instead of 20 лет назад
  Richard Nyberg 8115e481fa Wrong logmask was used. 20 лет назад
  Richard Nyberg 01191f2561 Spelling. 20 лет назад
  Richard Nyberg aa50cbe63a Removed the info entry in the net_buf. The information can easily 20 лет назад
  Richard Nyberg af31e76618 * Don't hold a net_buf on allocation. Do it when it's really needed instead. 20 лет назад
  Richard Nyberg 4f916d8abd Remove dead code. 20 лет назад
  Richard Nyberg 9cc1ffda34 Rework the outgoing network buffers. The buffers now contain more 20 лет назад
  Richard Nyberg 762b3560a5 Missing space. 20 лет назад
  Richard Nyberg aa31f523a3 Queue the bitfield for sending after the handshake is completed. 20 лет назад
  Richard Nyberg fcc9418b92 At each bandwidth call the remaining bandwidht counter is set to limit / hz. 20 лет назад
  Richard Nyberg f671c4f965 Use the old simpler bandwidth limiter, but run it at a configurable rate. 20 лет назад
  Richard Nyberg f65633c531 Set a 60s timeout on writes. If a write times ut the peer in question will 20 лет назад
  Richard Nyberg 40ffcd13c2 Kill a peer when write indicates a closed connection. 20 лет назад
  Richard Nyberg 614afd29cd Use net_read_to_buf in net_generic_read. 20 лет назад
  Richard Nyberg 47aa24ceaf Add net_read_to_buf getting rid of some common code. I should make 20 лет назад
  Richard Nyberg 474c7b5b3a * Better interface between the net and peer code. 20 лет назад
  Richard Nyberg f8a4999e40 The generic reader didn't have a buffer that was large enough to 20 лет назад
  Richard Nyberg fda00374c7 Remove #if 0'ed code. 20 лет назад