libtorrent::timeout_handler Struct Reference

#include <tracker_manager.hpp>

Inheritance diagram for libtorrent::timeout_handler:

libtorrent::tracker_connection libtorrent::http_tracker_connection libtorrent::udp_tracker_connection

List of all members.

Public Member Functions

 timeout_handler (asio::strand &str)
void set_timeout (int completion_timeout, int read_timeout)
void restart_read_timeout ()
void cancel ()
virtual void on_timeout ()=0
virtual ~timeout_handler ()

Private Types

typedef boost::mutex mutex_t

Private Member Functions

void timeout_callback (asio::error_code const &)
boost::intrusive_ptr
< timeout_handler
self ()

Private Attributes

asio::strandm_strand
boost::posix_time::ptime m_start_time
boost::posix_time::ptime m_read_time
asio::deadline_timer m_timeout
int m_completion_timeout
int m_read_timeout
mutex_t m_mutex
int m_refs

Friends

void intrusive_ptr_add_ref (timeout_handler const *)
void intrusive_ptr_release (timeout_handler const *)


Detailed Description

Definition at line 155 of file tracker_manager.hpp.


Member Typedef Documentation

typedef boost::mutex libtorrent::timeout_handler::mutex_t [private]

Definition at line 189 of file tracker_manager.hpp.


Constructor & Destructor Documentation

libtorrent::timeout_handler::timeout_handler ( asio::strand str  ) 

Definition at line 290 of file tracker_manager.cpp.

virtual libtorrent::timeout_handler::~timeout_handler (  )  [inline, virtual]

Definition at line 168 of file tracker_manager.hpp.


Member Function Documentation

void libtorrent::timeout_handler::set_timeout ( int  completion_timeout,
int  read_timeout 
)

void libtorrent::timeout_handler::restart_read_timeout (  ) 

void libtorrent::timeout_handler::cancel (  ) 

virtual void libtorrent::timeout_handler::on_timeout (  )  [pure virtual]

void libtorrent::timeout_handler::timeout_callback ( asio::error_code const &  error  )  [private]

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


Friends And Related Function Documentation

void intrusive_ptr_add_ref ( timeout_handler const *  c  )  [friend]

void intrusive_ptr_release ( timeout_handler const *  c  )  [friend]


Member Data Documentation

boost::posix_time::ptime libtorrent::timeout_handler::m_start_time [private]

Definition at line 180 of file tracker_manager.hpp.

Referenced by set_timeout(), and timeout_callback().

boost::posix_time::ptime libtorrent::timeout_handler::m_read_time [private]

Definition at line 182 of file tracker_manager.hpp.

Referenced by restart_read_timeout(), set_timeout(), and timeout_callback().

Definition at line 184 of file tracker_manager.hpp.

Referenced by cancel(), set_timeout(), and timeout_callback().

Definition at line 186 of file tracker_manager.hpp.

Referenced by cancel(), set_timeout(), and timeout_callback().

Definition at line 187 of file tracker_manager.hpp.

Referenced by set_timeout(), and timeout_callback().

int libtorrent::timeout_handler::m_refs [mutable, private]


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

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