p2pfl.communication.protocols.communication_protocol moduleΒΆ

Communication protocol.

class p2pfl.communication.protocols.communication_protocol.CommunicationProtocol(commands=None, *args, **kwargs)[source]ΒΆ

Bases: ABC, NodeComponent

Communication protocol interface.

Parameters:
  • addr – The address.

  • commands (Optional[List[Command]]) – The commands.

add_command(*args: Any, **kwargs: Any) AnyΒΆ
Return type:

Any

broadcast(*args: Any, **kwargs: Any) AnyΒΆ
Return type:

Any

build_msg(*args: Any, **kwargs: Any) AnyΒΆ
Return type:

Any

build_weights(*args: Any, **kwargs: Any) AnyΒΆ
Return type:

Any

connect(*args: Any, **kwargs: Any) AnyΒΆ
Return type:

Any

disconnect(*args: Any, **kwargs: Any) AnyΒΆ
Return type:

Any

get_address(*args: Any, **kwargs: Any) AnyΒΆ
Return type:

Any

get_neighbors(*args: Any, **kwargs: Any) AnyΒΆ
Return type:

Any

gossip_weights(*args: Any, **kwargs: Any) AnyΒΆ
Return type:

Any

send(*args: Any, **kwargs: Any) AnyΒΆ
Return type:

Any

start(*args: Any, **kwargs: Any) AnyΒΆ
Return type:

Any

stop(*args: Any, **kwargs: Any) AnyΒΆ
Return type:

Any

wait_for_termination(*args: Any, **kwargs: Any) AnyΒΆ
Return type:

Any