big
parent
c60d5fe6cc
commit
40204a8837
30
T7_server.py
30
T7_server.py
|
|
@ -68,22 +68,22 @@ def server():
|
||||||
myserver.bind(adrss)
|
myserver.bind(adrss)
|
||||||
myserver.listen(5)
|
myserver.listen(5)
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
# while True:
|
while True:
|
||||||
# try:
|
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:
|
except Exception as e:
|
||||||
# print(e)
|
print(e)
|
||||||
# continue
|
continue
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue