Re: Socket looping challenge

From: Date: Thu, 13 May 2004 22:44:59 +0000
Subject: Re: Socket looping challenge
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186170@lists.php.net to get a copy of this message
Hi, Friday, May 14, 2004, 5:21:10 AM, you wrote: RF> Hi all, RF> Still encountering some challenges with my socket loop. Basically, I RF> need this socket client to wait to read incoming data, but if nothing RF> happens for more than three seconds, I want it to do something, then RF> return to waiting (for another three seconds). I've got some good help RF> from Curt and Tom (thanks guys), but there are evidently still issues RF> with my code. Here's simplified snippet: you need to use break 2; to exit the while and the do - while or set $connection = false; -- regards, Tom

« previous php.general (#186170) next »