My main loop looks exactly like that, albeit with a few calls to readavail() to check the incoming streams, so I guess that's not the problem.
However, I don't use any timer. That's not crucial, I assume? Just to get it to do something once a second, yes?
However, I don't use any timer. That's not crucial, I assume? Just to get it to do something once a second, yes?