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 309B

12345678910111213141516
  1. import socket
  2. s = socket.socket()
  3. host = socket.gethostname()
  4. port = 61233
  5. s.connect((host, port))
  6. while True:
  7. message = input("Bitte String eingeben ")
  8. s.send(message.encode("utf-8"))
  9. if message == "STOP":
  10. break
  11. data = s.recv(1024).decode()
  12. print(data)
  13. s.close()