Onionr/src/communicator/onlinepeers
Kevin f28d469e56 Moved all communicator ext vars to KV 2020-07-29 03:57:06 -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 More decoupling, removed unnecessary announceCache 2020-07-26 21:45:17 -05:00
onlinepeers.py Moved all communicator ext vars to KV 2020-07-29 03:57:06 -05:00
pickonlinepeers.py Moved onlinePeers to KV to further reduce coupling 2020-07-25 22:28:32 -05:00
removeonlinepeer.py Moved all communicator ext vars to KV 2020-07-29 03:57:06 -05: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