Start the client. This method will first connect to the server. Then global rank is sent to the server.
(self)
| 85 | utils.send_int(self.sock, self.global_rank) |
| 86 | |
| 87 | def start(self) -> None: |
| 88 | """Start the client. |
| 89 | |
| 90 | This method will first connect to the server. Then global rank is sent to the server. |
| 91 | """ |
| 92 | self.__start_connection() |
| 93 | self.__start_rank_pairing() |
| 94 | |
| 95 | print(f"[Client {self.global_rank}] Connect to {self.host}:{self.port}") |
| 96 | |
| 97 | def close(self) -> None: |
| 98 | """Close the server.""" |
no test coverage detected