* Using SocketAddress instead of PeerInfo in Tracker*, unconnected

peers and HandshakeManager. Some other address releated code was
cleaned up.

* Made a seperate AvailableList class for unconnected peers. Using the
tracker success signal to call a function in ConnectionList that
removes already connected peers from the list.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@514 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-08-03 18:50:36 +00:00
parent 91a6950c01
commit e5aad7ed6a
4 changed files with 43 additions and 5 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ WindowPeerList::redraw() {
m_canvas->print(x, y, "%.1f", (double)p.get_peer_rate().rate() / 1024); x += 7;
m_canvas->print(x, y, "%c/%c%c/%c%c",
p.is_incoming() ? 'R' : 'L',
p.is_incoming() ? 'r' : 'l',
p.get_remote_choked() ? 'c' : 'u',
p.get_remote_interested() ? 'i' : 'n',
p.get_local_choked() ? 'c' : 'u',
+1 -1
View File
@@ -76,7 +76,7 @@ WindowStatusbar::redraw() {
buf,
(double)torrent::get_write_rate().rate() / 1024.0,
(double)torrent::get_read_rate().rate() / 1024.0,
!torrent::get_address().empty() ? torrent::get_address().c_str() : "<default>",
!torrent::get_local_address().empty() ? torrent::get_local_address().c_str() : "<default>",
(int)torrent::get_listen_port(),
!torrent::get_bind_address().empty() ? (" Bind: " + torrent::get_bind_address()).c_str() : "");