mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-07 14:49:21 +00:00
* Using SocketAddress instead of std::string/uint16_t for peer
addresses. * Tracker key is now an uint32_t instead of std::string. * Added client address to UDP tracker requests. * Added a check for FD_SETSIZE and _SC_OPEN_MAX in the client. A warning is issued if max open files and sockets exceed either of these. * Cleaned up the API, propably quite close to what will be in the slush'ed API. * Swapped emit and close order in TrackerHttp. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@499 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -76,9 +76,9 @@ WindowStatusbar::redraw() {
|
||||
buf,
|
||||
(double)torrent::get_write_rate().rate() / 1024.0,
|
||||
(double)torrent::get_read_rate().rate() / 1024.0,
|
||||
!torrent::get_ip().empty() ? torrent::get_ip().c_str() : "<default>",
|
||||
!torrent::get_address().empty() ? torrent::get_address().c_str() : "<default>",
|
||||
(int)torrent::get_listen_port(),
|
||||
!torrent::get_bind().empty() ? (" Bind: " + torrent::get_bind()).c_str() : "");
|
||||
!torrent::get_bind_address().empty() ? (" Bind: " + torrent::get_bind_address()).c_str() : "");
|
||||
|
||||
pos = snprintf(buf, 128, "[%3i/%3i/%3i]",
|
||||
torrent::get_total_handshakes(),
|
||||
|
||||
@@ -84,11 +84,12 @@ WindowTrackerList::redraw() {
|
||||
range.first == *m_focus ? '*' : ' ',
|
||||
t.get_url().c_str());
|
||||
|
||||
m_canvas->print(0, pos++, "%c Group: %2i Id: %s Enabled: %s",
|
||||
m_canvas->print(0, pos++, "%c Group: %2i Id: %s Enabled: %s Open: %s",
|
||||
range.first == *m_focus ? '*' : ' ',
|
||||
t.get_group(),
|
||||
utils::escape_string(t.get_tracker_id()).c_str(),
|
||||
t.is_enabled() ? "yes" : "no");
|
||||
t.is_enabled() ? "yes" : "no",
|
||||
t.is_open() ? "yes" : "no");
|
||||
|
||||
++range.first;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user