Dec-06-2019, 08:54 PM
Line 77
You're never sending data.
connectSock.sendall(message)
is indented one level too less.You're never sending data.
Output:deadeye@nexus ~/sserver_test $ python tt.py -t
received 100 back from server ('127.0.0.1', 5001)
it took 6.389617919921875e-05
deadeye@nexus ~/sserver_test $
deadeye@nexus ~/sserver_test $ python tt.py -t
received 1 back from server ('127.0.0.1', 5001)
it took 0.000110626220703125
deadeye@nexus ~/sserver_test $
Output:deadeye@nexus ~/sserver_test $ python tt.py -r
The server is ready to receive!
Connection from ('127.0.0.1', 59644)
Connection from ('127.0.0.1', 59708)
Try to improve your code. Put the different parts into functions.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!