chaopower 2023-12-14 10:57:57 +08:00
parent c60d5fe6cc
commit 40204a8837
1 changed files with 15 additions and 15 deletions

View File

@ -68,22 +68,22 @@ def server():
myserver.bind(adrss) myserver.bind(adrss)
myserver.listen(5) myserver.listen(5)
myclient, adddr = myserver.accept()
recv_content, chipnum = recvdata(myclient, os.path.join(basedir, 'example'))
layout = T7(recv_content, chipnum)
outputpath = layout.run()
senddata(myclient, outputpath)
# while True:
# try:
# myclient, adddr = myserver.accept() # myclient, adddr = myserver.accept()
# recv_content, chipnum = recvdata(myclient, os.path.join(basedir, 'example')) # recv_content, chipnum = recvdata(myclient, os.path.join(basedir, 'example'))
# layout = T7(recv_content, chipnum) # layout = T7(recv_content, chipnum)
# outputpath = layout.run() # outputpath = layout.run()
# senddata(myclient, outputpath) # senddata(myclient, outputpath)
# except Exception as e:
# print(e) while True:
# continue try:
myclient, adddr = myserver.accept()
recv_content, chipnum = recvdata(myclient, os.path.join(basedir, 'example'))
layout = T7(recv_content, chipnum)
outputpath = layout.run()
senddata(myclient, outputpath)
except Exception as e:
print(e)
continue
if __name__ == '__main__': if __name__ == '__main__':