libtorrent::http_tracker_connection Class Reference

#include <http_tracker_connection.hpp>

Inheritance diagram for libtorrent::http_tracker_connection:

libtorrent::tracker_connection libtorrent::timeout_handler

List of all members.

Public Member Functions

 http_tracker_connection (asio::strand &str, tracker_manager &man, tracker_request const &req, std::string const &hostname, unsigned short port, std::string request, address bind_infc, boost::weak_ptr< request_callback > c, session_settings const &stn, std::string const &password="")

Private Member Functions

boost::intrusive_ptr
< http_tracker_connection
self ()
void on_response ()
void init_send_buffer (std::string const &hostname, std::string const &request)
void name_lookup (asio::error_code const &error, tcp::resolver::iterator i)
void connected (asio::error_code const &error)
void sent (asio::error_code const &error)
void receive (asio::error_code const &error, std::size_t bytes_transferred)
virtual void on_timeout ()
void parse (const entry &e)
peer_entry extract_peer_info (const entry &e)

Private Attributes

tracker_managerm_man
http_parser m_parser
asio::strandm_strand
tcp::resolver m_name_lookup
int m_port
boost::shared_ptr< stream_socketm_socket
int m_recv_pos
std::vector< char > m_buffer
std::string m_send_buffer
session_settings const & m_settings
std::string m_password
bool m_timed_out

Friends

class tracker_manager


Detailed Description

Definition at line 109 of file http_tracker_connection.hpp.


Constructor & Destructor Documentation

libtorrent::http_tracker_connection::http_tracker_connection ( asio::strand str,
tracker_manager man,
tracker_request const &  req,
std::string const &  hostname,
unsigned short  port,
std::string  request,
address  bind_infc,
boost::weak_ptr< request_callback c,
session_settings const &  stn,
std::string const &  password = "" 
)


Member Function Documentation

boost::intrusive_ptr<http_tracker_connection> libtorrent::http_tracker_connection::self (  )  [inline, private]

Reimplemented from libtorrent::timeout_handler.

Definition at line 129 of file http_tracker_connection.hpp.

void libtorrent::http_tracker_connection::on_response (  )  [private]

void libtorrent::http_tracker_connection::init_send_buffer ( std::string const &  hostname,
std::string const &  request 
) [private]

void libtorrent::http_tracker_connection::name_lookup ( asio::error_code const &  error,
tcp::resolver::iterator  i 
) [private]

void libtorrent::http_tracker_connection::connected ( asio::error_code const &  error  )  [private]

void libtorrent::http_tracker_connection::sent ( asio::error_code const &  error  )  [private]

void libtorrent::http_tracker_connection::receive ( asio::error_code const &  error,
std::size_t  bytes_transferred 
) [private]

void libtorrent::http_tracker_connection::on_timeout (  )  [private, virtual]

void libtorrent::http_tracker_connection::parse ( const entry e  )  [private]

peer_entry libtorrent::http_tracker_connection::extract_peer_info ( const entry e  )  [private]


Friends And Related Function Documentation

friend class tracker_manager [friend]

Definition at line 112 of file http_tracker_connection.hpp.


Member Data Documentation

Reimplemented from libtorrent::tracker_connection.

Definition at line 149 of file http_tracker_connection.hpp.

Referenced by on_response().

Definition at line 150 of file http_tracker_connection.hpp.

Referenced by on_response(), parse(), and receive().

Reimplemented from libtorrent::timeout_handler.

Definition at line 152 of file http_tracker_connection.hpp.

Referenced by http_tracker_connection(), and on_response().

Definition at line 153 of file http_tracker_connection.hpp.

Referenced by http_tracker_connection(), name_lookup(), and on_timeout().

Definition at line 154 of file http_tracker_connection.hpp.

Referenced by http_tracker_connection().

Definition at line 155 of file http_tracker_connection.hpp.

Referenced by connected(), name_lookup(), on_timeout(), receive(), and sent().

Definition at line 156 of file http_tracker_connection.hpp.

Referenced by on_response(), receive(), and sent().

std::vector<char> libtorrent::http_tracker_connection::m_buffer [private]

Definition at line 157 of file http_tracker_connection.hpp.

Referenced by on_response(), receive(), and sent().

Definition at line 158 of file http_tracker_connection.hpp.

Referenced by connected(), and http_tracker_connection().

Definition at line 160 of file http_tracker_connection.hpp.

Referenced by http_tracker_connection(), on_response(), and receive().

Definition at line 161 of file http_tracker_connection.hpp.

Referenced by on_response().

Definition at line 163 of file http_tracker_connection.hpp.

Referenced by connected(), name_lookup(), on_timeout(), receive(), and sent().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:21:41 2008 by  doxygen 1.5.6