Changeset 11950


Ignore:
Timestamp:
Feb 18, 2011, 12:43:31 AM (11 years ago)
Author:
jch
Message:

Implement atom->utp_failed and peerMgrSetUpFailed.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r11948 r11950  
    133133
    134134    tr_port     port;
     135    tr_bool     utp_failed;         /* We recently failed to connect over uTP */
    135136    uint16_t    numFails;
    136137    time_t      time;               /* when the peer's connection status last changed */
     
    679680    if( atom )
    680681        atom->flags |= ADDED_F_UTP_FLAGS;
     682}
     683
     684void
     685tr_peerMgrSetUtpFailed( tr_torrent *tor, const tr_address *addr, tr_bool failed )
     686{
     687    struct peer_atom * atom = getExistingAtom( tor->torrentPeers, addr );
     688
     689    if( atom )
     690        atom->utp_failed = failed;
    681691}
    682692
  • trunk/libtransmission/peer-mgr.h

    r11945 r11950  
    153153                                const tr_address * addr );
    154154
     155void tr_peerMgrSetUtpFailed( tr_torrent *tor,
     156                             const tr_address *addr,
     157                             tr_bool failed );
     158
    155159void tr_peerMgrGetNextRequests( tr_torrent          * torrent,
    156160                                tr_peer             * peer,
Note: See TracChangeset for help on using the changeset viewer.