Advertisement

select() timeouts

Started by September 20, 2005 02:24 AM
1 comment, last by GameDev.net 19 years, 5 months ago
hello, I m trying to find a gd timeout value for select to use in the timeval structure that i pass. the network update is done in a seperate thread and i need to process many things so this is not a blocking function the problem is that values of 1 sec are not caught so i m specigying some of 500usec, is it any gd or is there a better way to find a gd value to be used? Thank you.
Why not just use 0 seconds and 0 useconds? That way it'll just poll the socket.

This topic is closed to new replies.

Advertisement