(self, host, port)
| 1512 | time.sleep(0.1) # give threads time to start |
| 1513 | |
| 1514 | def connect(self, host, port): |
| 1515 | if host: |
| 1516 | s = start_client(host, port) |
| 1517 | self._client_socket = s |
| 1518 | else: |
| 1519 | s = start_server(port) |
| 1520 | |
| 1521 | self.initialize_network(s) |
| 1522 | |
| 1523 | def create_wait_for_connection_thread(self): |
| 1524 | if self._waiting_for_connection_thread is not None: |