erster commit
This commit is contained in:
commit
775ce391d5
14
client.py
Normal file
14
client.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import socket
|
||||||
|
|
||||||
|
s = socket.socket()
|
||||||
|
host = socket.gethostname()
|
||||||
|
port = 12345
|
||||||
|
s.bind((host,port))
|
||||||
|
s.listen()
|
||||||
|
|
||||||
|
while True:
|
||||||
|
(connection, addr) = s.accept()
|
||||||
|
print("Verdindung von", addr)
|
||||||
|
msg= "Danke für ds vorbeischauen"
|
||||||
|
connection.send(msg.encode('utf-8'))
|
||||||
|
connection.close()
|
Loading…
x
Reference in New Issue
Block a user