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.c

    r8414 r8433  
    12721272checkAndStartImpl( void * vtor )
    12731273{
     1274    time_t now;
    12741275    tr_torrent * tor = vtor;
    12751276
     
    12781279    tr_globalLock( tor->session );
    12791280
     1281    now = time( NULL );
    12801282    tor->isRunning = TRUE;
    12811283    tor->needsSeedRatioCheck = TRUE;
     
    12841286    tor->completeness = tr_cpGetStatus( &tor->completion );
    12851287    tr_torrentSaveResume( tor );
    1286     tor->startDate = tor->anyDate = time( NULL );
     1288    tor->startDate = tor->anyDate = now;
    12871289    tr_trackerStart( tor->tracker );
     1290    tor->dhtAnnounceAt = now + tr_cryptoWeakRandInt( 20 );
    12881291    tr_peerMgrStartTorrent( tor );
    12891292
Note: See TracChangeset for help on using the changeset viewer.