Because of my new strategy to avoid having to use multiple threads, I won't be able to shut down my accept() loop by sending a message to that thread from the main thread.
I need to check the stdin buffer for input, get that input, and then clear the buffer. If there's nothing in the buffer, I want to just move on - I can't wait for something to show up in the buffer.
I've seen this done before and I think I've actually done it - but it's just been too long. Can someone point me in the right direction, please?