x33
04-08-2003, 11:14 PM
Hi!
I've got another question... There may be replies on the subject in this forum, but i haven't noticed any...
Imagine we've got a 'classical' select() loop of this kind:
while (true)
{
do_select();
perform_check_and_properly_process_the_situation() ;
}
Now what if some of the socket descriptors change their state during the second operation ('perform_check_and_properly_process_the_situation ()')? Will select() know about it on the next while-loop iteration? Or the changes won't be noticed?
I've got another question... There may be replies on the subject in this forum, but i haven't noticed any...
Imagine we've got a 'classical' select() loop of this kind:
while (true)
{
do_select();
perform_check_and_properly_process_the_situation() ;
}
Now what if some of the socket descriptors change their state during the second operation ('perform_check_and_properly_process_the_situation ()')? Will select() know about it on the next while-loop iteration? Or the changes won't be noticed?