Ignore:
Timestamp:
May 19, 2009, 6:38:26 PM (13 years ago)
Author:
charles
Message:

(trunk) #7: DHT support. This is a work in progress... no gui/rpc support yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.h

    r8389 r8433  
    176176    struct tr_publisher_tag *  trackerSubscription;
    177177
     178    time_t                     dhtAnnounceAt;
     179    tr_bool                    dhtAnnounceInProgress;
     180
    178181    uint64_t                   downloadedCur;
    179182    uint64_t                   downloadedPrev;
     
    289292}
    290293
     294static TR_INLINE tr_bool tr_torrentAllowsDHT( const tr_torrent * tor )
     295{
     296    return ( tor != NULL  ) && tor->session->isDHTEnabled && !tr_torrentIsPrivate( tor );
     297}
     298
    291299static TR_INLINE tr_bool tr_torrentIsPieceChecked( const tr_torrent  * tor, tr_piece_index_t i )
    292300{
Note: See TracChangeset for help on using the changeset viewer.