BitTorrent transfers

Hi Petr,

I’ve done some progress with BitTorrent transfers over the past week. Would you please have a look at the new code in Protocols/BitTorrent/Transfers?

Class Transfer is quite interesting because it is the top-level class that implements transfers. With regard to your recent work on TrackerRequestSession maybe implementing TrackerManager will be of interest for you. I was initially thinking that TrackerManager and Transfer would have a 1:1 relationship but then I realized that 1:n could also work. This is clearly one more advantage of passing objects from the outside. The same is for Choker - initially I thought I would have a single Choker per Transfer but then I realized that because we should have a global limit of upload slots it would be better to have a single Choker object.

Regards,

Peter

Would you like to post a relpy?


This post starts a thread.
Follow-ups:
Re: BitTorrent transfers
Hi Peter, I've browsed the new code in your dev branch and here are some remarks/ideas. TransferTest.cpp:75/80 I think you can get rid of the local variable packetProcessors since it's used only as (more...)