mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 15:12:30 +00:00
* 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:
@@ -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',
|
||||
|
||||
@@ -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() : "");
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@ apply_bind(ui::Control* m, const std::string& arg) {
|
||||
|
||||
void
|
||||
apply_ip(ui::Control* m, const std::string& arg) {
|
||||
torrent::set_address(arg);
|
||||
torrent::set_local_address(arg);
|
||||
}
|
||||
|
||||
// The arg string *must* have been checked with validate_port_range
|
||||
|
||||
Reference in New Issue
Block a user