MCPcopy Create free account
hub / github.com/apache/singa / __start_connection

Method __start_connection

examples/hfl/src/server.py:73–77  ·  view source on GitHub ↗

Start the network connection of server.

(self)

Source from the content-addressed store, hash-verified

71 self.weights = {}
72
73 def __start_connection(self) -> None:
74 """Start the network connection of server."""
75 self.sock.bind((self.host, self.port))
76 self.sock.listen()
77 print("Server started.")
78
79 def __start_rank_pairing(self) -> None:
80 """Start pair each client to a global rank"""

Callers 1

startMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected