Ignore:
Timestamp:
Dec 26, 2006, 9:02:00 PM (16 years ago)
Author:
livings124
Message:

manual announce in mac gui...only useable once per minute for each torrent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r1256 r1283  
    160160       
    161161        [fDate release];
     162       
     163        if (fAnnounceDate)
     164            [fAnnounceDate release];
    162165       
    163166        [fIcon release];
     
    463466}
    464467
     468- (void) announce
     469{
     470    if (![self isActive])
     471        return;
     472   
     473    tr_manualUpdate(fHandle);
     474   
     475    if (fAnnounceDate)
     476        [fAnnounceDate release];
     477    fAnnounceDate = [[NSDate date] retain];
     478}
     479
     480- (NSDate *) announceDate
     481{
     482    return fAnnounceDate;
     483}
     484
    465485- (float) ratio
    466486{
     
    699719}
    700720
    701 - (NSString *) tracker
     721- (NSString *) trackerAddress
    702722{
    703723    return [NSString stringWithFormat: @"http://%s:%d", fStat->trackerAddress, fStat->trackerPort];
    704724}
    705725
    706 - (NSString *) announce
     726- (NSString *) trackerAddressAnnounce
    707727{
    708728    return [NSString stringWithUTF8String: fStat->trackerAnnounce];
Note: See TracChangeset for help on using the changeset viewer.