from protocol import Client client = Client(6631) client.wait_handshake() while True: client.receive_message()
def protocol_test(): port = randint(5000, 5099) print(f"port: {port}") client = Client(port) client.wait_handshake() client.receive_message()