* Added new API for client type and version info, which will replace

the code currently in the client.

* Fixed rtorrent.rc to show the right name for the encryption option.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@804 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-11-15 14:05:34 +00:00
parent 1982429b8c
commit cafd4c6090
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
# encryption_options = allow_incoming,enable_retry,prefer_plaintext
# encryption = allow_incoming,enable_retry,prefer_plaintext
#
# Do not modify the following parameters unless you know what you're doing.
+6 -1
View File
@@ -41,6 +41,7 @@
#include <torrent/rate.h>
#include <torrent/data/block_transfer.h>
#include <torrent/data/piece.h>
#include <torrent/peer/client_list.h>
#include "core/download.h"
#include "rak/algorithm.h"
@@ -138,7 +139,11 @@ WindowPeerList::redraw() {
x += 7;
char buf[128];
control->client_info()->print(buf, buf + 128, p.id().data());
torrent::ClientInfo clientInfo = torrent::client_list()->parse_id(p.id());
std::strncpy(buf, clientInfo.short_description(), 128);
// control->client_info()->print(buf, buf + 128, p.id().data());
m_canvas->print(x, y, "%s", buf);