Changeset 10661


Ignore:
Timestamp:
May 19, 2010, 3:53:09 PM (12 years ago)
Author:
charles
Message:

(trunk libT) promote PEX peers up the food chain a little bit

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r10635 r10661  
    33313331        return i;
    33323332
     3333    /* prefer peers that we got from more trusted sources */
     3334    if( a->atom->from != b->atom->from )
     3335        return a->atom->from < b->atom->from ? -1 : 1;
     3336
    33333337    /* salt */
    33343338    return a->salt - b->salt;
  • trunk/libtransmission/transmission.h

    r10643 r10661  
    16691669{
    16701670    TR_PEER_FROM_INCOMING  = 0, /* connections made to the listening port */
    1671     TR_PEER_FROM_LPD,           /* peers discovered by local announcements */
    1672     TR_PEER_FROM_TRACKER,       /* peers received from a tracker */
    1673     TR_PEER_FROM_DHT,           /* peers learnt from the DHT */
    1674     TR_PEER_FROM_RESUME,        /* peers read from the .resume file */
    1675     TR_PEER_FROM_PEX,           /* peers discovered via PEX */
     1671    TR_PEER_FROM_LPD,           /* peers found by local announcements */
     1672    TR_PEER_FROM_TRACKER,       /* peers found from a tracker */
     1673    TR_PEER_FROM_PEX,           /* peers found from PEX */
     1674    TR_PEER_FROM_DHT,           /* peers found from the DHT */
     1675    TR_PEER_FROM_RESUME,        /* peers found in the .resume file */
    16761676    TR_PEER_FROM_LTEP,          /* peer address provided in an LTEP handshake */
    16771677    TR_PEER_FROM__MAX
Note: See TracChangeset for help on using the changeset viewer.