praktikum
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 232B

12345678910111213141516171819
  1. import socket
  2. SOCKET = socket.socket()
  3. HOST = socket.gethostname()
  4. PORT = 45677
  5. # Eingabe
  6. eingabe = input("Eingabe: ")
  7. # Verbindung zum Server
  8. SOCKET.connect((HOST, PORT))
  9. SOCKET.send(eingabe.encode("utf-8"))
  10. SOCKET.close()