Lines Matching refs:choke
3040 /* get a rate for deciding which peers to choke and unchoke. */
3082 struct ChokeData * choke = tr_new0( struct ChokeData, peerCount );
3102 if( peerIsSeed( peer ) ) /* choke seeds and partial seeds */
3106 else if( chokeAll ) /* choke everyone if we're not uploading */
3112 struct ChokeData * n = &choke[size++];
3122 qsort( choke, size, sizeof( struct ChokeData ), compareChoke );
3141 choke[i].isChoked = isMaxedOut ? choke[i].wasChoked : false;
3142 if( choke[i].isInterested )
3155 if( choke[i].isInterested )
3157 const tr_peer * peer = choke[i].peer;
3161 tr_ptrArrayAppend( &randPool, &choke[i] );
3177 tr_peerMsgsSetChoke( choke[i].peer->msgs, choke[i].isChoked );
3180 tr_free( choke );