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

GRPC server.

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

Bases: ProtobuffServer

Implementation of the server side logic of GRPC 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.

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

Any

set_addr(addr)[source]ΒΆ

Parse and set the addr of the node.

Return type:

str

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