p2pfl.communication.protocols.protobuff.heartbeater moduleΒΆ
Protocol agnostic heartbeater.
- class p2pfl.communication.protocols.protobuff.heartbeater.Heartbeater(neighbors, build_msg)[source]ΒΆ
Bases:
Thread,NodeComponentHeartbeater for agnostic communication protocol. Send and update fresh heartbeats.
TODO: Merge heartbeats to increase efficiency.
- Parameters:
neighbors (
Neighbors) β Neighbors to update.build_msg (
Callable[...,RootMessage])