added optimistic unchoke flag to client_test
This commit is contained in:
parent
1399b623bc
commit
ee01d7bb11
|
@ -303,7 +303,7 @@ int peer_index(libtorrent::tcp::endpoint addr, std::vector<libtorrent::peer_info
|
||||||
void print_peer_info(std::ostream& out, std::vector<libtorrent::peer_info> const& peers)
|
void print_peer_info(std::ostream& out, std::vector<libtorrent::peer_info> const& peers)
|
||||||
{
|
{
|
||||||
using namespace libtorrent;
|
using namespace libtorrent;
|
||||||
out << " down (total) up (total) que req flags source fail hshf sndb inactive wait disk block-progress "
|
out << " down (total) up (total) que req flags source fail hshf sndb inactive wait disk block-progress "
|
||||||
#ifndef TORRENT_DISABLE_RESOLVE_COUNTRIES
|
#ifndef TORRENT_DISABLE_RESOLVE_COUNTRIES
|
||||||
"country "
|
"country "
|
||||||
#endif
|
#endif
|
||||||
|
@ -331,6 +331,7 @@ void print_peer_info(std::ostream& out, std::vector<libtorrent::peer_info> const
|
||||||
<< ((i->flags & peer_info::local_connection)?'l':'r')
|
<< ((i->flags & peer_info::local_connection)?'l':'r')
|
||||||
<< ((i->flags & peer_info::seed)?'s':'.')
|
<< ((i->flags & peer_info::seed)?'s':'.')
|
||||||
<< ((i->flags & peer_info::on_parole)?'p':'.')
|
<< ((i->flags & peer_info::on_parole)?'p':'.')
|
||||||
|
<< ((i->flags & peer_info::optimistic_unchoke)?'O':'.')
|
||||||
#ifndef TORRENT_DISABLE_ENCRYPTION
|
#ifndef TORRENT_DISABLE_ENCRYPTION
|
||||||
<< ((i->flags & peer_info::rc4_encrypted)?'E':
|
<< ((i->flags & peer_info::rc4_encrypted)?'E':
|
||||||
(i->flags & peer_info::plaintext_encrypted)?'e':'.')
|
(i->flags & peer_info::plaintext_encrypted)?'e':'.')
|
||||||
|
|
Loading…
Reference in New Issue