Onionr/src/communicator/onlinepeers
Kevin 7f8e63f19b keep trying to connect to new peers eagerly if we have no outgoing connections 2020-06-28 04:17:45 -05:00
..
README.md renamed onionr dir and bugfixes/linting progress 2019-11-21 02:23:58 -06:00
__init__.py renamed onionr dir and bugfixes/linting progress 2019-11-21 02:23:58 -06:00
clearofflinepeer.py linting refactoring communicator(utils) and reduced TOCTOU issus with online peer picking 2019-12-20 01:24:38 -06:00
onlinepeers.py keep trying to connect to new peers eagerly if we have no outgoing connections 2020-06-28 04:17:45 -05:00
pickonlinepeers.py * made api servers lint compliant 2019-12-20 02:37:12 -06:00
removeonlinepeer.py * made api servers lint compliant 2019-12-20 02:37:12 -06:00

README.md

Online Peers

Manages a pool of peers to perform actions with. Since Onionr does not maintain socket connections, it holds a list of peers.

Files

  • __init__.py: exposes some functions to interact with the pool
  • clearofflinepeer.py: Pop the oldest peer in the offline list
  • onlinepeers.py: communicator timer to add new peers to the pool randomly
  • pickonlinepeers.py: returns a random peer from the online pool
  • removeonlinepeer.py: removes a specified peer from the online pool