Electroneum
epee::net_utils::network_throttle_manager Class Reference

#include <network_throttle.hpp>

Static Public Member Functions

static i_network_throttleget_global_throttle_in ()
 singleton ; for friend class ; caller MUST use proper locks! like m_lock_get_global_throttle_in More...
 
static i_network_throttleget_global_throttle_inreq ()
 ditto ; use lock ... use m_lock_get_global_throttle_inreq obviously More...
 
static i_network_throttleget_global_throttle_out ()
 ditto ; use lock ... use m_lock_get_global_throttle_out obviously More...
 

Static Public Attributes

static boost::mutex m_lock_get_global_throttle_in
 
static boost::mutex m_lock_get_global_throttle_inreq
 
static boost::mutex m_lock_get_global_throttle_out
 

Friends

class connection_basic
 
class connection_basic_pimpl
 

Detailed Description

Definition at line 106 of file network_throttle.hpp.

Member Function Documentation

◆ get_global_throttle_in()

i_network_throttle & epee::net_utils::network_throttle_manager::get_global_throttle_in ( )
static

singleton ; for friend class ; caller MUST use proper locks! like m_lock_get_global_throttle_in

Definition at line 77 of file network_throttle.cpp.

77  {
78  static network_throttle obj_get_global_throttle_in("in/all","<<< global-IN",10);
79  return obj_get_global_throttle_in;
80 }
Here is the caller graph for this function:

◆ get_global_throttle_inreq()

i_network_throttle & epee::net_utils::network_throttle_manager::get_global_throttle_inreq ( )
static

ditto ; use lock ... use m_lock_get_global_throttle_inreq obviously

Definition at line 84 of file network_throttle.cpp.

84  {
85  static network_throttle obj_get_global_throttle_inreq("inreq/all", "<== global-IN-REQ",10);
86  return obj_get_global_throttle_inreq;
87 }
Here is the caller graph for this function:

◆ get_global_throttle_out()

i_network_throttle & epee::net_utils::network_throttle_manager::get_global_throttle_out ( )
static

ditto ; use lock ... use m_lock_get_global_throttle_out obviously

Definition at line 90 of file network_throttle.cpp.

90  {
91  static network_throttle obj_get_global_throttle_out("out/all", ">>> global-OUT",10);
92  return obj_get_global_throttle_out;
93 }
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ connection_basic

friend class connection_basic
friend

Definition at line 119 of file network_throttle.hpp.

◆ connection_basic_pimpl

friend class connection_basic_pimpl
friend

Definition at line 120 of file network_throttle.hpp.

Member Data Documentation

◆ m_lock_get_global_throttle_in

boost::mutex epee::net_utils::network_throttle_manager::m_lock_get_global_throttle_in
static

Definition at line 115 of file network_throttle.hpp.

◆ m_lock_get_global_throttle_inreq

boost::mutex epee::net_utils::network_throttle_manager::m_lock_get_global_throttle_inreq
static

Definition at line 116 of file network_throttle.hpp.

◆ m_lock_get_global_throttle_out

boost::mutex epee::net_utils::network_throttle_manager::m_lock_get_global_throttle_out
static

Definition at line 117 of file network_throttle.hpp.


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