host=socket.gethostname() | host=socket.gethostname() | ||||
port= 12345 | port= 12345 | ||||
s.connect((host , port)) | s.connect((host , port)) | ||||
msg = input('geben sie was ein: ') | |||||
bytes= s.recv(1024) | bytes= s.recv(1024) | ||||
print(bytes.decode('utf-8') ) | print(bytes.decode('utf-8') ) | ||||
s.close() | s.close() |