summary refs log tree commit diff
AgeCommit message (Expand)Author
2006-01-04Fixed a broken loop. I must have forgotten that the loop variable wasRichard Nyberg
2006-01-03o Removed an unused function.Richard Nyberg
2005-12-17First stab at a choke algorithm for all peers. In previous versions chokingRichard Nyberg
2005-12-14Add and use rand_between.Richard Nyberg
2005-12-02* Some code shuffle and removal of dead code.Richard Nyberg
2005-12-01Rates should be unsigned long. Compute total, torrent and peer rates.Richard Nyberg
2005-12-01dl_on_lost_peer must remove the peer from the list. This was accidentallyRichard Nyberg
2005-12-01Fix an unsafe loop.Richard Nyberg
2005-11-30The mega whitespace patch.Richard Nyberg
2005-11-30* Added net_(add|del)_torrent. net_add_torrent enables p2p for a torrentRichard Nyberg
2005-11-29* Removed the heartbeat and btpd_seconds. Note that this breaks the tracker.Richard Nyberg
2005-11-27* Get rid of net_bw_hz and run the bw stuff at one hz.Richard Nyberg
2005-11-27More name changes from "cm_" to more appropriate names.Richard Nyberg
2005-11-27Rename the list of torrents.Richard Nyberg
2005-11-27This is very much a intermediate commit.Richard Nyberg
2005-11-14Use a flag (PF_DO_UNWANT) to indicate that we should send an uninterestRichard Nyberg
2005-11-07Just bump version number.Richard Nyberg
2005-11-07Step one of many to make the sub systems more modular. This commit getsRichard Nyberg
2005-10-10Set version to 0.7. Update CHANGES.Richard Nyberg
2005-10-08Add a new net state to get the index and begin fields from piece messagesRichard Nyberg
2005-10-08Have a peer event for keep alives too. Its only function is to log atm.Richard Nyberg
2005-10-08Wait until we don't have any unanswered requests on a peer beforeRichard Nyberg
2005-10-08Log keep alives.Richard Nyberg
2005-10-08Accept pieces even if they arrive in a different order than theRichard Nyberg
2005-10-08Logging.Richard Nyberg
2005-10-08Remove unsent requests from the write queue when we receive a choke.Richard Nyberg
2005-10-06Enable all logging if DEBUG is defined.Richard Nyberg
2005-10-06More logging: discarded pieces and peer_id.Richard Nyberg
2005-10-06#include <limits.h> to be sure to get IOV_MAX.Richard Nyberg
2005-10-05Fix two bugs. Add some logging.Richard Nyberg
2005-10-05Remove unused constants.Richard Nyberg
2005-10-05Code shuffle.Richard Nyberg
2005-10-05Put the net state related data in its own sub struct.Richard Nyberg
2005-10-05Constify some functions.Richard Nyberg
2005-10-04net_state should return ssize_t not int.Richard Nyberg
2005-10-04Better method of reading data from peers. btpd could send data to peersRichard Nyberg
2005-10-04Rewrite of the code for receiving data from peers.Richard Nyberg
2005-10-01More logging.Richard Nyberg
2005-09-30Changes for 0.6.Richard Nyberg
2005-09-24In the transition to end game it's likely that we'll send an uniterestRichard Nyberg
2005-09-23Send a new request to a peer after sending cancel.Richard Nyberg
2005-09-21xRichard Nyberg
2005-09-21Bump version to 0.6.Richard Nyberg
2005-09-20* Allocate request messages on piece creation. The request objects canRichard Nyberg
2005-09-20Use the piece destructor.Richard Nyberg
2005-09-20Add some macros.Richard Nyberg
2005-09-10Simplify the autocrap somewhat. Always include the #defines neededRichard Nyberg
2005-08-30Remove a bad assert. The test can be true during normal operation.Richard Nyberg
2005-08-12Set an upper limit on how many piece messages to queue forRichard Nyberg
2005-08-03Only allocate one have message for all peers, instead of one per peer.Richard Nyberg