mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-05 17:52:29 +00:00
* Made PCB inherit from Peer.
* Added man page entry for ^E. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1032 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -150,6 +150,15 @@ Close a torrent and its files.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>^E</term>
|
||||
<listitem><para>
|
||||
Set the 'create/resize queued' flags on all files in a torrent. This
|
||||
is necessary if the underlying files in a torrent have been deleted or
|
||||
truncates, and thus rtorrent much recreate them.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>^R</term>
|
||||
<listitem><para>
|
||||
|
||||
+4
-4
@@ -68,25 +68,25 @@ retrieve_p_id_html(torrent::Peer* peer) {
|
||||
|
||||
torrent::Object
|
||||
retrieve_p_address(torrent::Peer* peer) {
|
||||
return rak::socket_address::cast_from(peer->info()->socket_address())->address_str();
|
||||
return rak::socket_address::cast_from(peer->peer_info()->socket_address())->address_str();
|
||||
}
|
||||
|
||||
torrent::Object
|
||||
retrieve_p_port(torrent::Peer* peer) {
|
||||
return rak::socket_address::cast_from(peer->info()->socket_address())->port();
|
||||
return rak::socket_address::cast_from(peer->peer_info()->socket_address())->port();
|
||||
}
|
||||
|
||||
torrent::Object
|
||||
retrieve_p_client_version(torrent::Peer* peer) {
|
||||
char buf[128];
|
||||
display::print_client_version(buf, buf + 128, peer->info()->client_info());
|
||||
display::print_client_version(buf, buf + 128, peer->peer_info()->client_info());
|
||||
|
||||
return std::string(buf);
|
||||
}
|
||||
|
||||
torrent::Object
|
||||
retrieve_p_options_str(torrent::Peer* peer) {
|
||||
return rak::transform_hex(peer->info()->options(), peer->info()->options() + 8);
|
||||
return rak::transform_hex(peer->peer_info()->options(), peer->peer_info()->options() + 8);
|
||||
}
|
||||
|
||||
torrent::Object
|
||||
|
||||
@@ -110,20 +110,20 @@ WindowPeerList::redraw() {
|
||||
|
||||
char remoteChoked;
|
||||
|
||||
if (!p->is_remote_choked_limited())
|
||||
if (!p->is_down_choked_limited())
|
||||
remoteChoked = 'U';
|
||||
else if (p->is_remote_queued())
|
||||
else if (p->is_down_queued())
|
||||
remoteChoked = 'Q';
|
||||
else
|
||||
remoteChoked = 'C';
|
||||
|
||||
m_canvas->print(x, y, "%c/%c%c/%c%c",
|
||||
p->is_encrypted() ? (p->is_incoming() ? 'R' : 'L') : (p->is_incoming() ? 'r' : 'l'),
|
||||
p->is_remote_choked() ? std::tolower(remoteChoked) : remoteChoked,
|
||||
p->is_down_choked() ? std::tolower(remoteChoked) : remoteChoked,
|
||||
|
||||
p->is_remote_interested() ? 'i' : 'n',
|
||||
p->is_local_choked() ? 'c' : 'u',
|
||||
p->is_local_interested() ? 'i' : 'n');
|
||||
p->is_down_interested() ? 'i' : 'n',
|
||||
p->is_up_choked() ? 'c' : 'u',
|
||||
p->is_up_interested() ? 'i' : 'n');
|
||||
x += 9;
|
||||
|
||||
m_canvas->print(x, y, "%i/%i", p->outgoing_queue_size(), p->incoming_queue_size());
|
||||
@@ -150,7 +150,7 @@ WindowPeerList::redraw() {
|
||||
x += 7;
|
||||
|
||||
char buf[128];
|
||||
print_client_version(buf, buf + 128, p->info()->client_info());
|
||||
print_client_version(buf, buf + 128, p->peer_info()->client_info());
|
||||
|
||||
m_canvas->print(x, y, "%s", buf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user