libtorrent::policy::peer Struct Reference

#include <policy.hpp>

List of all members.

Public Types

enum  connection_type { not_connectable, connectable }

Public Member Functions

 peer (const tcp::endpoint &ip, connection_type t)
size_type total_download () const
size_type total_upload () const

Public Attributes

tcp::endpoint ip
connection_type type
boost::posix_time::ptime last_optimistically_unchoked
boost::posix_time::ptime connected
size_type prev_amount_upload
size_type prev_amount_download
bool banned
peer_connectionconnection


Detailed Description

Definition at line 131 of file policy.hpp.


Member Enumeration Documentation

Enumerator:
not_connectable 
connectable 

Definition at line 133 of file policy.hpp.


Constructor & Destructor Documentation

libtorrent::policy::peer::peer ( const tcp::endpoint ip,
peer::connection_type  t 
)

Definition at line 1372 of file policy.cpp.

References connected.


Member Function Documentation

size_type libtorrent::policy::peer::total_download (  )  const

size_type libtorrent::policy::peer::total_upload (  )  const


Member Data Documentation

Definition at line 144 of file policy.hpp.

Referenced by libtorrent::policy::connect_peer().

Definition at line 145 of file policy.hpp.

Referenced by libtorrent::policy::connect_one_peer().

boost::posix_time::ptime libtorrent::policy::peer::connected

Definition at line 164 of file policy.hpp.

Referenced by libtorrent::policy::connect_peer(), and total_upload().

Definition at line 165 of file policy.hpp.

Referenced by libtorrent::policy::connect_peer(), and total_download().

Definition at line 168 of file policy.hpp.

Referenced by libtorrent::policy::connect_one_peer().


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

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