I am writing a ping app for my networking class. I have the ping part of the code working perfectly, my issue is in shutting down my "ping" server. If I run it with while True, not even ctrl-C will shut it down till the next ping request. I can set it to only run for 4 iterations or whatever, but I'd prefer to have the server run until I give a quit command.
I've tried using threads and threading, and neither one worked for me. This is all just basic command line stuff, so I'd like to be able to push 'q' and enter to quit.
thanks for any help you guys can give me.
let me know if you want to actually see my code.