Electroneum
network_throttle.cpp File Reference

interface for throttling of connection (count and rate-limit speed etc) More...

Include dependency graph for network_throttle.cpp:

Go to the source code of this file.

Namespaces

 epee
 
 epee::net_utils
 

Detailed Description

interface for throttling of connection (count and rate-limit speed etc)

Author
rfree (current maintainer in electroneum.cc project)
Throttling work by:
1) taking note of all traffic (hooks added e.g. to connection class) and measuring speed
2) depending on that information we sleep before sending out data (or send smaller portions of data)
3) depending on the information we can also sleep before sending requests or ask for smaller sets of data to download
rate1-down-1k.png
rate1-down-full.png
rate1-up-10k.png
rate1-up-full.png
rate2-down-100k.png
rate2-down-10k.png
rate2-down-50k.png
rate2-down-full.png
rate2-up-100k.png
rate2-up-10k.png
rate3-up-10k.png

Definition in file network_throttle.cpp.