1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

nothing exciting

This commit is contained in:
Mitchell Livingston 2010-05-19 23:08:14 +00:00
parent 697b9ef394
commit 306cdead06
4 changed files with 18 additions and 22 deletions

View file

@ -135,7 +135,7 @@
else
[fWebSeeds removeAllObjects];
NSUInteger known = 0, connected = 0, tracker = 0, incoming = 0, cache = 0, lds = 0, pex = 0, dht = 0, ltep = 0,
NSUInteger known = 0, connected = 0, tracker = 0, incoming = 0, cache = 0, lpd = 0, pex = 0, dht = 0, ltep = 0,
toUs = 0, fromUs = 0;
BOOL anyActive = false;
for (Torrent * torrent in fTorrents)
@ -157,7 +157,7 @@
tracker += [torrent totalPeersTracker];
incoming += [torrent totalPeersIncoming];
cache += [torrent totalPeersCache];
lds += [torrent totalPeersLocal];
lpd += [torrent totalPeersLocal];
pex += [torrent totalPeersPex];
dht += [torrent totalPeersDHT];
ltep += [torrent totalPeersLTEP];
@ -192,9 +192,9 @@
if (cache > 0)
[fromComponents addObject: [NSString stringWithFormat:
NSLocalizedString(@"%d cache", "Inspector -> Peers tab -> peers"), cache]];
if (lds > 0)
if (lpd > 0)
[fromComponents addObject: [NSString stringWithFormat:
NSLocalizedString(@"%d local discovery", "Inspector -> Peers tab -> peers"), lds]];
NSLocalizedString(@"%d local discovery", "Inspector -> Peers tab -> peers"), lpd]];
if (pex > 0)
[fromComponents addObject: [NSString stringWithFormat:
NSLocalizedString(@"%d PEX", "Inspector -> Peers tab -> peers"), pex]];

View file

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

View file

@ -1155,8 +1155,8 @@ tr_session * fHandle;
[fDefaults setBool: dht forKey: @"DHTGlobal"];
//dht
const BOOL lds = tr_sessionIsLPDEnabled(fHandle);
[fDefaults setBool: lds forKey: @"LocalPeerDiscovery"];
const BOOL lpd = tr_sessionIsLPDEnabled(fHandle);
[fDefaults setBool: lpd forKey: @"LocalPeerDiscovery"];
//auto start
const BOOL autoStart = !tr_sessionGetPaused(fHandle);
@ -1240,7 +1240,7 @@ tr_session * fHandle;
//dht handled by bindings
//lds handled by bindings
//lpd handled by bindings
[fPortField setIntValue: port];
//port forwarding (nat) handled by bindings

View file

@ -4536,10 +4536,6 @@ AAABAAAAAQ</bytes>
<string key="NSExtension">NSResponder</string>
</object>
<object class="NSUserDefaultsController" id="356871564">
<object class="NSMutableArray" key="NSDeclaredKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>LocalPeerDiscoveryGlobal</string>
</object>
<bool key="NSSharedInstance">YES</bool>
</object>
<object class="NSCustomObject" id="981493640">
@ -7884,14 +7880,6 @@ AAABAAAAAQ</bytes>
</object>
<int key="connectionID">1950</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">setLDS:</string>
<reference key="source" ref="511492310"/>
<reference key="destination" ref="1042006550"/>
</object>
<int key="connectionID">1955</int>
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">value: values.LocalPeerDiscoveryGlobal</string>
@ -7908,6 +7896,14 @@ AAABAAAAAQ</bytes>
</object>
<int key="connectionID">1956</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">setLPD:</string>
<reference key="source" ref="511492310"/>
<reference key="destination" ref="1042006550"/>
</object>
<int key="connectionID">1957</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@ -11965,7 +11961,7 @@ AAABAAAAAQ</bytes>
</object>
</object>
<nil key="sourceID"/>
<int key="maxID">1956</int>
<int key="maxID">1957</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@ -12139,7 +12135,7 @@ AAABAAAAAQ</bytes>
<string>setDownloadLocation:</string>
<string>setEncryptionMode:</string>
<string>setGlobalLimit:</string>
<string>setLDS:</string>
<string>setLPD:</string>
<string>setNat:</string>
<string>setPEX:</string>
<string>setPeersGlobal:</string>