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.py 249B

12345678910111213141516171819
  1. import socket
  2. s = socket.socket()
  3. host = socket.gethostname()
  4. port = 12345
  5. eingabe = input("gibt etwas ein")
  6. print(eingabe)
  7. while True:
  8. (connection, addr) = s.accept()
  9. connection.send(eingabe.encode('utf-8'))
  10. connection.close()