[bittorrent] about choking algorithm

Arnaud Legout Arnaud.Legout at sophia.inria.fr
Thu Nov 17 03:27:27 EST 2005

I read your comments fast, but I think you get it right.


Isa Bel wrote:
> Dear all,
> I am new with the python things in this BitTorrent programming
> Now I have been learning about the choking algorithm
> Thanks to the paper that have been written by Arnaud Legout
> I understand more about the choking algorithm
> But I have some question about the coding in the choker.py especially 
> in the function understanding
> From what I have learned,
> Operation definition:
> __init__: a constructor
> _round_robin: a function for scheduling the choking algorithm
> _rechoke: choking algorithm in leecher state
> _rechoke_seed: choking algorithm in seed state
> connection_made: used to add more connection in the list when a peer 
> join the swarm
> connection_lost: when connection with a peer is lost then remove the 
> connection from the list after that call the _rechoke function if the 
> upload connection of a peer is interested and not choked
> interested: used when peer becomes interested and if not choked then 
> call the _rechoke function
> not_interested: used when peer becomes not interested and if not 
> choked then call the _rechoke function
> I am kind of confuse between the "interested" term and the flags
> Thanks for the reading and the answer
> ------------------------------------------------------------------------
> Yahoo! FareChase - Search multiple travel sites in one click. 
> <http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/> 
> ------------------------------------------------------------------------
> _______________________________________________
> BitTorrent mailing list
> BitTorrent at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/bittorrent

Arnaud Legout, Ph.D.

INRIA Sophia Antipolis - Planète  Phone :
2004 route des lucioles - BP 93   Fax   :
06902 Sophia Antipolis CEDEX      E-mail: arnaud.legout at sophia.inria.fr
FRANCE                            Web   : http://www-sop.inria.fr/planete/Arnaud.Legout/index.html

More information about the BitTorrent mailing list