s = socket.socket()
adress = ("192.168.15.102", 9999)
s.bind(adress)
s.listen()
s.setblocking(False)
while 1:
try:
conn , addr = s.accept()
print(conn.recv(1024).decode("utf-8"))
except BlockingIOError:
print("干活了") time.sleep(0.2)
s = socket.socket()
adress = ("192.168.15.102", 9999)
s.bind(adress)
s.listen()
s.setblocking(False)
while 1:
try:
conn , addr = s.accept()
print(conn.recv(1024).decode("utf-8"))
except BlockingIOError:
print("干活了") time.sleep(0.2)