#include <peer_id.hpp>
Public Types | |
| enum | { size = number_size } |
| typedef const unsigned char * | const_iterator |
| typedef unsigned char * | iterator |
Public Member Functions | |
| big_number () | |
| big_number (std::string const &s) | |
| big_number (private_pointer *) | |
| void | clear () |
| bool | is_all_zeros () const |
| bool | operator== (big_number const &n) const |
| bool | operator!= (big_number const &n) const |
| bool | operator< (big_number const &n) const |
| big_number | operator~ () |
| big_number & | operator &= (big_number const &n) |
| big_number & | operator|= (big_number const &n) |
| unsigned char & | operator[] (int i) |
| unsigned char const & | operator[] (int i) const |
| const_iterator | begin () const |
| const_iterator | end () const |
| iterator | begin () |
| iterator | end () |
Private Types | |
| enum | { number_size = 20 } |
Private Attributes | |
| unsigned char | m_number [number_size] |
Classes | |
| struct | private_pointer |
Definition at line 48 of file peer_id.hpp.
| typedef const unsigned char* libtorrent::big_number::const_iterator |
Definition at line 126 of file peer_id.hpp.
| typedef unsigned char* libtorrent::big_number::iterator |
Definition at line 127 of file peer_id.hpp.
anonymous enum [private] |
| anonymous enum |
| libtorrent::big_number::big_number | ( | ) | [inline] |
Definition at line 57 of file peer_id.hpp.
| libtorrent::big_number::big_number | ( | std::string const & | s | ) | [inline] |
Definition at line 59 of file peer_id.hpp.
| libtorrent::big_number::big_number | ( | private_pointer * | ) | [inline] |
Definition at line 66 of file peer_id.hpp.
| void libtorrent::big_number::clear | ( | ) | [inline] |
Definition at line 68 of file peer_id.hpp.
Referenced by libtorrent::torrent_info::add_file(), libtorrent::udp_tracker_connection::announce_response(), and libtorrent::http_tracker_connection::parse().
| bool libtorrent::big_number::is_all_zeros | ( | ) | const [inline] |
Definition at line 73 of file peer_id.hpp.
References count.
Referenced by libtorrent::identify_client(), and libtorrent::torrent::tracker_response().
| bool libtorrent::big_number::operator== | ( | big_number const & | n | ) | const [inline] |
| bool libtorrent::big_number::operator!= | ( | big_number const & | n | ) | const [inline] |
| bool libtorrent::big_number::operator< | ( | big_number const & | n | ) | const [inline] |
| big_number libtorrent::big_number::operator~ | ( | ) | [inline] |
| big_number& libtorrent::big_number::operator &= | ( | big_number const & | n | ) | [inline] |
| big_number& libtorrent::big_number::operator|= | ( | big_number const & | n | ) | [inline] |
| unsigned char& libtorrent::big_number::operator[] | ( | int | i | ) | [inline] |
Definition at line 120 of file peer_id.hpp.
| unsigned char const& libtorrent::big_number::operator[] | ( | int | i | ) | const [inline] |
Definition at line 123 of file peer_id.hpp.
| const_iterator libtorrent::big_number::begin | ( | ) | const [inline] |
Definition at line 129 of file peer_id.hpp.
Referenced by libtorrent::torrent::announce_piece(), libtorrent::torrent::bytes_done(), libtorrent::dht::compare_ref(), libtorrent::dht::distance(), libtorrent::dht::distance_exp(), libtorrent::http_tracker_connection::extract_peer_info(), libtorrent::torrent::filter_pieces(), libtorrent::hasher::final(), libtorrent::dht::node_impl::generate_token(), libtorrent::http_tracker_connection::http_tracker_connection(), libtorrent::identify_client(), libtorrent::dht::dht_tracker::on_receive(), libtorrent::bt_peer_connection::on_receive(), libtorrent::operator<<(), libtorrent::operator>>(), libtorrent::peer_connection::peer_connection(), libtorrent::torrent::piece_failed(), libtorrent::dht::dht_tracker::send_packet(), libtorrent::udp_tracker_connection::send_udp_announce(), libtorrent::aux::session_impl::session_impl(), libtorrent::torrent::tracker_response(), libtorrent::bt_peer_connection::write_handshake(), and libtorrent::torrent_handle::write_resume_data().
| const_iterator libtorrent::big_number::end | ( | ) | const [inline] |
Definition at line 130 of file peer_id.hpp.
Referenced by libtorrent::torrent::bytes_done(), libtorrent::dht::compare_ref(), libtorrent::dht::distance(), libtorrent::dht::distance_exp(), libtorrent::identify_client(), libtorrent::bt_peer_connection::on_receive(), libtorrent::operator<<(), libtorrent::operator>>(), libtorrent::http_tracker_connection::parse(), libtorrent::peer_connection::peer_connection(), libtorrent::dht::dht_tracker::send_packet(), libtorrent::udp_tracker_connection::send_udp_announce(), libtorrent::udp_tracker_connection::send_udp_scrape(), libtorrent::aux::session_impl::session_impl(), libtorrent::torrent::tracker_response(), libtorrent::bt_peer_connection::write_handshake(), and libtorrent::torrent_handle::write_resume_data().
| iterator libtorrent::big_number::begin | ( | ) | [inline] |
Definition at line 132 of file peer_id.hpp.
| iterator libtorrent::big_number::end | ( | ) | [inline] |
Definition at line 133 of file peer_id.hpp.
unsigned char libtorrent::big_number::m_number[number_size] [private] |
Definition at line 137 of file peer_id.hpp.
Referenced by operator &=(), operator!=(), operator<(), operator==(), operator|=(), and operator~().
1.5.6