diff --git a/client.py b/client.py index eb7ff17adf3aff8159430970c58b45287f86cf93..5c1fc1d40b00187ce07f722f4feeea8fa251318b 100644 --- a/client.py +++ b/client.py @@ -120,4 +120,4 @@ users_label.pack() users_list = tk.Listbox(users_frame, height=5, width=30) users_list.pack() -root.mainloop() \ No newline at end of file +root.mainloop() diff --git a/serveur.py b/serveur.py index ea7ec8cc9ed7bf73945165c1faab163075d09c8d..66596284f97236a4b3f750816a64ab0c8af55be0 100644 --- a/serveur.py +++ b/serveur.py @@ -29,8 +29,8 @@ def start_server(host, port): server_socket.bind((host, port)) server_socket.listen(5) print(f"Server is running on {host}:{port}") - - while True: + + while True: # Accepter les connexions des clients client_socket, client_address = server_socket.accept() print(f"Client {client_address} connected.") @@ -49,4 +49,3 @@ port = int(input("Entrez le port du serveur : ")) # Démarrer le serveur avec les paramètres spécifiés clients = [] start_server(host, port) -