From 4d8a6a781ebc3df554125cbe96bdcca990d7f937 Mon Sep 17 00:00:00 2001 From: pouanideumassse68079 Date: Tue, 15 Oct 2019 15:32:59 +0200 Subject: [PATCH] hello --- client.py | 4 ++-- sever.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client.py b/client.py index 6225dd0..6110889 100644 --- a/client.py +++ b/client.py @@ -4,5 +4,5 @@ host=socket.gethostname() port= 12345 s.connect((host , port)) bytes= s.recv(1024) -print(bytes.decode("utf-8") ) -s.closed() \ No newline at end of file +print(bytes.decode('utf-8') ) +s.close() \ No newline at end of file diff --git a/sever.py b/sever.py index 19dda9e..7c3517d 100644 --- a/sever.py +++ b/sever.py @@ -5,8 +5,8 @@ port = 12345 s.bind((host , port)) s.listen() while True: - (connection.addr )= s.accept() - print("verbindung von", addr) - msg= "Danke für das vorbeischauen!" - connection.send(msg.encode("utf-8")) + (connection, addr )= s.accept() + print('verbindung von', addr) + msg= 'Danke für das vorbeischauen!' + connection.send(msg.encode('utf-8')) connection.close() \ No newline at end of file