Ignore:
Timestamp:
Oct 10, 2007, 4:39:12 PM (15 years ago)
Author:
charles
Message:

commit more of tiennou's fastpeers patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-msgs.c

    r3347 r3349  
    10241024            msgs->blockToUs.length = msglen - 8;
    10251025            assert( EVBUFFER_LENGTH(msgs->inBlock) == 0 );
    1026             //evbuffer_drain( msgs->inBlock, ~0 );
    10271026            msgs->state = msgs->blockToUs.length ? READING_BT_PIECE : AWAITING_BT_LENGTH;
    10281027            return READ_AGAIN;
     
    17241723    tr_publisherUnsubscribe( peer->publisher, tag );
    17251724}
     1725
     1726int
     1727tr_peerMsgIsPieceFastAllowed( const tr_peermsgs * peer,
     1728                              uint32_t            index )
     1729{
     1730    return tr_bitfieldHas( peer->clientAllowedPieces, index );
     1731}
     1732
Note: See TracChangeset for help on using the changeset viewer.