Electroneum
epee::net_utils::i_network_throttle Class Referenceabstract

#include <network_throttle.hpp>

Inheritance diagram for epee::net_utils::i_network_throttle:

Public Member Functions

virtual void set_name (const std::string &name)=0
 
virtual void set_target_speed (network_speed_kbps target)=0
 
virtual network_speed_kbps get_target_speed ()=0
 
virtual void handle_trafic_exact (size_t packet_size)=0
 
virtual void handle_trafic_tcp (size_t packet_size)=0
 
virtual void tick ()=0
 
virtual void calculate_times (size_t packet_size, calculate_times_struct &cts, bool dbg, double force_window) const =0
 
virtual network_time_seconds get_sleep_time (size_t packet_size) const =0
 
virtual network_time_seconds get_sleep_time_after_tick (size_t packet_size)=0
 
virtual size_t get_recommended_size_of_planned_transport () const =0
 
virtual double get_time_seconds () const =0
 
virtual void logger_handle_net (const std::string &filename, double time, size_t size)=0
 
virtual void get_stats (uint64_t &total_packets, uint64_t &total_bytes) const =0
 

Detailed Description

Definition at line 133 of file network_throttle.hpp.

Member Function Documentation

◆ calculate_times()

virtual void epee::net_utils::i_network_throttle::calculate_times ( size_t  packet_size,
calculate_times_struct cts,
bool  dbg,
double  force_window 
) const
pure virtual

◆ get_recommended_size_of_planned_transport()

virtual size_t epee::net_utils::i_network_throttle::get_recommended_size_of_planned_transport ( ) const
pure virtual

◆ get_sleep_time()

virtual network_time_seconds epee::net_utils::i_network_throttle::get_sleep_time ( size_t  packet_size) const
pure virtual

Implemented in epee::net_utils::network_throttle.

Here is the caller graph for this function:

◆ get_sleep_time_after_tick()

virtual network_time_seconds epee::net_utils::i_network_throttle::get_sleep_time_after_tick ( size_t  packet_size)
pure virtual

Implemented in epee::net_utils::network_throttle.

Here is the caller graph for this function:

◆ get_stats()

virtual void epee::net_utils::i_network_throttle::get_stats ( uint64_t total_packets,
uint64_t total_bytes 
) const
pure virtual

Implemented in epee::net_utils::network_throttle.

Here is the caller graph for this function:

◆ get_target_speed()

virtual network_speed_kbps epee::net_utils::i_network_throttle::get_target_speed ( )
pure virtual

Implemented in epee::net_utils::network_throttle.

Here is the caller graph for this function:

◆ get_time_seconds()

virtual double epee::net_utils::i_network_throttle::get_time_seconds ( ) const
pure virtual

◆ handle_trafic_exact()

virtual void epee::net_utils::i_network_throttle::handle_trafic_exact ( size_t  packet_size)
pure virtual

Implemented in epee::net_utils::network_throttle.

Here is the caller graph for this function:

◆ handle_trafic_tcp()

virtual void epee::net_utils::i_network_throttle::handle_trafic_tcp ( size_t  packet_size)
pure virtual

◆ logger_handle_net()

virtual void epee::net_utils::i_network_throttle::logger_handle_net ( const std::string &  filename,
double  time,
size_t  size 
)
pure virtual

◆ set_name()

virtual void epee::net_utils::i_network_throttle::set_name ( const std::string &  name)
pure virtual

◆ set_target_speed()

virtual void epee::net_utils::i_network_throttle::set_target_speed ( network_speed_kbps  target)
pure virtual

Implemented in epee::net_utils::network_throttle.

Here is the caller graph for this function:

◆ tick()

virtual void epee::net_utils::i_network_throttle::tick ( )
pure virtual

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