* Added information about which side initiates a connection.

* Cleaned up torrent::DownloadNet and created torrent::ConnectionList
that handles the connections in a download.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@513 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-08-02 14:59:04 +00:00
parent 89a090111d
commit 91a6950c01
2 changed files with 13 additions and 11 deletions
+11 -10
View File
@@ -62,14 +62,14 @@ WindowPeerList::redraw() {
int x = 2;
int y = 0;
m_canvas->print(x, y, "DNS"); x += 16;
m_canvas->print(x, y, "UP"); x += 7;
m_canvas->print(x, y, "DOWN"); x += 7;
m_canvas->print(x, y, "PEER"); x += 7;
m_canvas->print(x, y, "RE/LO"); x += 7;
m_canvas->print(x, y, "QS"); x += 6;
m_canvas->print(x, y, "DONE"); x += 6;
m_canvas->print(x, y, "REQ"); x += 6;
m_canvas->print(x, y, "DNS"); x += 16;
m_canvas->print(x, y, "UP"); x += 7;
m_canvas->print(x, y, "DOWN"); x += 7;
m_canvas->print(x, y, "PEER"); x += 7;
m_canvas->print(x, y, "C/RE/LO"); x += 9;
m_canvas->print(x, y, "QS"); x += 6;
m_canvas->print(x, y, "DONE"); x += 6;
m_canvas->print(x, y, "REQ"); x += 6;
m_canvas->print(x, y, "SNUB");
++y;
@@ -101,12 +101,13 @@ WindowPeerList::redraw() {
m_canvas->print(x, y, "%.1f", (double)p.get_read_rate().rate() / 1024); x += 7;
m_canvas->print(x, y, "%.1f", (double)p.get_peer_rate().rate() / 1024); x += 7;
m_canvas->print(x, y, "%c%c/%c%c",
m_canvas->print(x, y, "%c/%c%c/%c%c",
p.is_incoming() ? 'R' : 'L',
p.get_remote_choked() ? 'c' : 'u',
p.get_remote_interested() ? 'i' : 'n',
p.get_local_choked() ? 'c' : 'u',
p.get_local_interested() ? 'i' : 'n');
x += 7;
x += 9;
m_canvas->print(x, y, "%i/%i",
p.get_outgoing_queue_size(),