From fe657f79a523c211d5a04b9a1a9b1af03ca69660 Mon Sep 17 00:00:00 2001 From: OUDJOUDI Mazis <oudjoudimazis14@gmail.com> Date: Tue, 30 Apr 2024 14:42:22 +0200 Subject: [PATCH] version finale --- client.py | 2 +- serveur.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/client.py b/client.py index eb7ff17..5c1fc1d 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 ea7ec8c..6659628 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) - -- GitLab