exposed upload_only in peer_info

This commit is contained in:
Arvid Norberg
2008-07-19 07:57:43 +00:00
parent 49e76f510f
commit 7607034ab6
6 changed files with 26 additions and 3 deletions

View File

@@ -381,6 +381,7 @@ void print_peer_info(std::ostream& out, std::vector<libtorrent::peer_info> const
(i->write_state == peer_info::bw_global)?'w':
(i->write_state == peer_info::bw_network)?'W':'.')
<< ((i->flags & peer_info::snubbed)?'S':'.')
<< ((i->flags & peer_info::upload_only)?'U':'D')
#ifndef TORRENT_DISABLE_ENCRYPTION
<< ((i->flags & peer_info::rc4_encrypted)?'E':
(i->flags & peer_info::plaintext_encrypted)?'e':'.')