Sync mac client with libtransmission's LDS->LDP changes, maybe

This commit is contained in:
Charles Kerr 2010-05-08 08:48:28 +00:00
parent 2b9ab542cb
commit 627f458e6a
4 changed files with 6 additions and 6 deletions

View File

@ -386,7 +386,7 @@
case TR_PEER_FROM_RESUME:
[components addObject: NSLocalizedString(@"From: cache", "Inspector -> Peers tab -> table row tooltip")];
break;
case TR_PEER_FROM_LDS:
case TR_PEER_FROM_LDP:
[components addObject: NSLocalizedString(@"From: local peer discovery", "Inspector -> Peers tab -> table row tooltip")];
break;
case TR_PEER_FROM_PEX:

View File

@ -84,7 +84,7 @@
- (void) setPEX: (id) sender;
- (void) setDHT: (id) sender;
- (void) setLDS: (id) sender;
- (void) setLDP: (id) sender;
- (void) setEncryptionMode: (id) sender;

View File

@ -481,9 +481,9 @@ tr_session * fHandle;
tr_sessionSetDHTEnabled(fHandle, [fDefaults boolForKey: @"DHTGlobal"]);
}
- (void) setLDS: (id) sender
- (void) setLDP: (id) sender
{
tr_sessionSetLDSEnabled(fHandle, [fDefaults boolForKey: @"LocalPeerDiscoveryGlobal"]);
tr_sessionSetLDPEnabled(fHandle, [fDefaults boolForKey: @"LocalPeerDiscoveryGlobal"]);
}
- (void) setEncryptionMode: (id) sender
@ -1155,7 +1155,7 @@ tr_session * fHandle;
[fDefaults setBool: dht forKey: @"DHTGlobal"];
//dht
const BOOL lds = tr_sessionIsLDSEnabled(fHandle);
const BOOL lds = tr_sessionIsLDPEnabled(fHandle);
[fDefaults setBool: lds forKey: @"LocalPeerDiscovery"];
//auto start

View File

@ -1204,7 +1204,7 @@ int trashDataFile(const char * filename)
- (NSInteger) totalPeersLocal
{
return fStat->peersFrom[TR_PEER_FROM_LDS];
return fStat->peersFrom[TR_PEER_FROM_LDP];
}
- (NSInteger) totalPeersLTEP