This commit is contained in:
Mai Gillmann 2019-10-15 14:46:26 +02:00
commit 0e64a0cd30

15
demo_client.py Normal file
View File

@ -0,0 +1,15 @@
import socket
eingabe = input("Bitte etwas eingeben:")
s = socket.socket()
host = socket.gethostname()
port = 12346
s.connect((host, port))
s.send(eingabe)
bytes = s.recv(1024)
print(bytes.decode('utf-8'))
print('Receipt')
s.close()