p2pfl.communication.protocols.protobuff.grpc.server moduleΒΆ
GRPC server.
- class p2pfl.communication.protocols.protobuff.grpc.server.GrpcServer(gossiper, neighbors, commands=None)[source]ΒΆ
Bases:
ProtobuffServerImplementation of the server side logic of GRPC communication protocol.
- Parameters:
- is_running()[source]ΒΆ
Check if the server is running.
- Return type:
bool- Returns:
True if the server is running, False otherwise.
- set_addr(addr)[source]ΒΆ
Parse and set the addr of the node.
- Parameters:
addr (
str)- Return type:
str