libtorrent::bandwidth_limit Struct Reference

#include <bandwidth_manager.hpp>

List of all members.

Public Member Functions

 bandwidth_limit ()
void throttle (int limit)
int throttle () const
void assign (int amount)
void use_quota (int amount)
int quota_left () const
void expire (int amount)
int max_assignable () const

Static Public Attributes

static const int inf = boost::integer_traits<int>::const_max

Private Attributes

int m_quota_left
int m_local_limit
int m_current_rate


Detailed Description

Definition at line 88 of file bandwidth_manager.hpp.


Constructor & Destructor Documentation

libtorrent::bandwidth_limit::bandwidth_limit (  )  [inline]

Definition at line 92 of file bandwidth_manager.hpp.


Member Function Documentation

void libtorrent::bandwidth_limit::throttle ( int  limit  )  [inline]

int libtorrent::bandwidth_limit::throttle (  )  const [inline]

Definition at line 103 of file bandwidth_manager.hpp.

References m_local_limit.

void libtorrent::bandwidth_limit::assign ( int  amount  )  [inline]

void libtorrent::bandwidth_limit::use_quota ( int  amount  )  [inline]

int libtorrent::bandwidth_limit::quota_left (  )  const [inline]

void libtorrent::bandwidth_limit::expire ( int  amount  )  [inline]

int libtorrent::bandwidth_limit::max_assignable (  )  const [inline]


Member Data Documentation

const int libtorrent::bandwidth_limit::inf = boost::integer_traits<int>::const_max [static]

Definition at line 149 of file bandwidth_manager.hpp.

Referenced by assign(), quota_left(), and use_quota().

Definition at line 153 of file bandwidth_manager.hpp.

Referenced by max_assignable(), and throttle().

Definition at line 158 of file bandwidth_manager.hpp.

Referenced by assign(), expire(), and max_assignable().


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

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