atomic_p2p package¶
Subpackages¶
- atomic_p2p.abc package
- atomic_p2p.communication package
- atomic_p2p.logging package
- atomic_p2p.manager package
- atomic_p2p.mixin package
- Subpackages
- atomic_p2p.mixin.authenticator package
- atomic_p2p.mixin.topology package
- Subpackages
- atomic_p2p.mixin.topology.lan package
- Subpackages
- atomic_p2p.mixin.topology.lan.handler package
- Submodules
- atomic_p2p.mixin.topology.lan.handler.ack_new_member module
- atomic_p2p.mixin.topology.lan.handler.check_join module
- atomic_p2p.mixin.topology.lan.handler.disconnect module
- atomic_p2p.mixin.topology.lan.handler.join module
- atomic_p2p.mixin.topology.lan.handler.new_member module
- Module contents
- atomic_p2p.mixin.topology.lan.handler package
- Module contents
- Subpackages
- atomic_p2p.mixin.topology.lan package
- Module contents
- Subpackages
- Submodules
- atomic_p2p.mixin.commandable module
- atomic_p2p.mixin.handleable module
- Module contents
- Subpackages
- atomic_p2p.peer package
- atomic_p2p.utils package
Submodules¶
atomic_p2p.local_monitor module¶
-
class
atomic_p2p.local_monitor.
LocalMonitor
(service, password, logger=<Logger atomic_p2p.local_monitor (DEBUG)>)¶ Bases:
atomic_p2p.manager.thread.ThreadManager
-
command_recv
(enc_data, addr)¶
-
decrypt
(enc_data)¶
-
encrypt
(raw_data)¶
-
new_cipher
(key)¶
-
registerCommand
()¶
-
registerHandler
()¶
-
run
()¶ Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
-
stop
()¶
-
Module contents¶
-
class
atomic_p2p.
AtomicP2P
(role, addr, name, cert, logger)¶ Bases:
object
-
__init__
(role, addr, name, cert, logger)¶ Init of AtomicP2P object :param role: str represents peer’s role. :param addr: str with ip:port format, peer server will listen on. :param name: str represents peer’s name. :param cert: str represents cert file’s path, should directly point to
cert file. like data/atomic_p2p.pem, and key file should same as cert file exception sub-extension with .key.
-
start
()¶
-
stop
()¶
-