35 Commits (64060294ab58dfd07a95a24a1500602421748da9)

Author SHA1 Message Date
  Richard Nyberg 8b04af7e91 Find and ban peers with bad data. 16 years ago
  Richard Nyberg 89a95cbdf5 Split peer information. Make id hash functions available. 16 years ago
  Richard Nyberg 05329268d5 Add IPv6 support. 16 years ago
  Richard Nyberg c4379cdfb9 Send keepalives. 19 years ago
  Richard Nyberg 2a462baead Btpd could be DOS'ed by incoming connections that never send any data. 19 years ago
  Richard Nyberg 9f4070eeb8 There's now one list with requests per piece instead of one per block. The 19 years ago
  Richard Nyberg 1c14af0ab4 Add peer_full function. 20 years ago
  Richard Nyberg 2d21101699 * Move the network related parts of the torrent struct to a sub struct. 20 years ago
  Richard Nyberg 2e63eaf8ea Rename p->net to p->in and net_state to input_state. Move code to where it 20 years ago
  Richard Nyberg 00fc2ce31e Rates should be unsigned long. Compute total, torrent and peer rates. 20 years ago
  Richard Nyberg c285b374f8 The mega whitespace patch. 20 years ago
  Richard Nyberg 005ce9d2c2 * Removed the heartbeat and btpd_seconds. Note that this breaks the tracker. 20 years ago
  Richard Nyberg a01ffd8423 * Get rid of net_bw_hz and run the bw stuff at one hz. 20 years ago
  Richard Nyberg a93803cdb2 More name changes from "cm_" to more appropriate names. 20 years ago
  Richard Nyberg 3f6d7576a5 Use a flag (PF_DO_UNWANT) to indicate that we should send an uninterest 20 years ago
  Richard Nyberg e025c4743a Add a new net state to get the index and begin fields from piece messages 20 years ago
  Richard Nyberg 0cae0e478d Have a peer event for keep alives too. Its only function is to log atm. 20 years ago
  Richard Nyberg e5cd773d85 Wait until we don't have any unanswered requests on a peer before 20 years ago
  Richard Nyberg 28fcbed3c5 #include <limits.h> to be sure to get IOV_MAX. 20 years ago
  Richard Nyberg 80214ff0fb Code shuffle. 20 years ago
  Richard Nyberg 9ba7dc69fc Put the net state related data in its own sub struct. 20 years ago
  Richard Nyberg 2bc4a5d83a Constify some functions. 20 years ago
  Richard Nyberg f963072983 Better method of reading data from peers. btpd could send data to peers 20 years ago
  Richard Nyberg 32a88ff5d8 Rewrite of the code for receiving data from peers. 20 years ago
  Richard Nyberg f31e2d8b89 * Allocate request messages on piece creation. The request objects can 20 years ago
  Richard Nyberg eaf95339c7 Set an upper limit on how many piece messages to queue for 20 years ago
  Richard Nyberg 2acdcff5a6 * Rearrange some code. Mostly from net to net_buf and peer. 20 years ago
  Richard Nyberg 9cc1ffda34 Rework the outgoing network buffers. The buffers now contain more 20 years ago
  Richard Nyberg 6bcb6d3816 Code shuffle. 20 years ago
  Richard Nyberg ce0e134bc4 Increase the number of requests to pipe to 10. 20 years ago
  Richard Nyberg 0502d4bf92 Rework the download algorithm. This isn't tested yet, but it compiles 20 years ago
  Richard Nyberg 474c7b5b3a * Better interface between the net and peer code. 20 years ago
  Richard Nyberg b529666a82 Use compact mode for tracker requests. 20 years ago
  Richard Nyberg c375a92236 Rename TAILQ to BTPDQ to avoid macro redefinition, 20 years ago
  Richard Nyberg dd0d462afa Import btpd-0.1. 20 years ago