p2pfl.communication.protocols.protobuff.server moduleΒΆ

Protobuff server.

class p2pfl.communication.protocols.protobuff.server.ProtobuffServer(gossiper, neighbors, commands=None)[source]ΒΆ

Bases: ABC, NodeServicesServicer, NodeComponent

Implementation of the server side logic of PROTOBUFF communication protocol.

Parameters:
  • addr – Address of the server.

  • gossiper (Gossiper) – Gossiper instance.

  • neighbors (Neighbors) – Neighbors instance.

  • commands (Optional[list[Command]]) – List of commands to be executed by the server.

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

Any

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

Missing associated documentation comment in .proto file.

Return type:

Any

handshake(*args: Any, **kwargs: Any) AnyΒΆ

Missing associated documentation comment in .proto file.

Return type:

Any

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

Any

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

Missing associated documentation comment in .proto file.

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