Onionr/onionr/communicator/onlinepeers
2019-08-07 17:46:57 -05:00
..
__init__.py mostly finished refactoring communicator into a module 2019-07-11 02:39:35 -05:00
clearofflinepeer.py refactoring communicator into module 2019-07-10 17:38:20 -05:00
onlinepeers.py progress in removing core 2019-07-18 12:40:48 -05:00
pickonlinepeers.py added some more readmes 2019-08-07 17:46:57 -05:00
README.md added some more readmes 2019-08-07 17:46:57 -05:00
removeonlinepeer.py mostly finished refactoring communicator into a module 2019-07-11 02:39:35 -05:00

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