Version_1
This commit is contained in:
commit
cf004f2950
19
Client.py
Normal file
19
Client.py
Normal file
@ -0,0 +1,19 @@
|
||||
import socket
|
||||
|
||||
SOCKET = socket.socket()
|
||||
HOST = socket.gethostname()
|
||||
PORT = 45677
|
||||
|
||||
|
||||
|
||||
# Eingabe
|
||||
eingabe = input("Eingabe: ")
|
||||
|
||||
# Verbindung zum Server
|
||||
SOCKET.connect((HOST, PORT))
|
||||
|
||||
SOCKET.send(eingabe.encode("utf-8"))
|
||||
|
||||
|
||||
|
||||
SOCKET.close()
|
Loading…
x
Reference in New Issue
Block a user