You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

client_app.py 310B

1234567891011121314
  1. import socket
  2. s = socket.socket()
  3. host = socket.gethostname()
  4. port = 61233
  5. eingabe = " "
  6. while eingabe != "STOP":
  7. eingabe = input("Bitte String eingeben ")
  8. s.connect((host, port))
  9. s.send(eingabe.encode("utf-8"))
  10. bytes = s.recv(1024)
  11. print(bytes.decode("utf-8"))
  12. s.close()