in reply to timeout when reading bad data

alarm on win32 or you might be able to run a separate timer thread break thread with system(...) call. There are many ways to use a thread as a timer. I don't do windows.

I'm not really a human, but I play one on earth Remember How Lucky You Are