RE: [PHP] I am in Socket Paradise

2004-05-20 Thread Chris W. Parker
René Fournier mailto:[EMAIL PROTECTED]
on Thursday, May 20, 2004 2:58 PM said:

 Please ignore my previous
 I-AM-SO-FRUSTRATED-I-AM-READY-FOR-A-JACKET-WITH-REALLY-LONG-SLEEVES
 posts. I have managed to solve my socket woes. My simple client works
 loops, timesout, loops again... elegantly. (I've learned not take
 those PHP warnings so seriously... and to clear socket errors.)

so i admittedly stopped following your numerous threads after a while... mainly for 
the simple fact that i've never worked with sockets thus had nothing to contribute...

but how praytell did you solve your problem?



chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] I am in Socket Paradise

2004-05-20 Thread René Fournier
On Thursday, May 20, 2004, at 04:17 PM, Chris W. Parker wrote:
René Fournier mailto:[EMAIL PROTECTED]
on Thursday, May 20, 2004 2:58 PM said:
Please ignore my previous
I-AM-SO-FRUSTRATED-I-AM-READY-FOR-A-JACKET-WITH-REALLY-LONG-SLEEVES
posts. I have managed to solve my socket woes. My simple client works
loops, timesout, loops again... elegantly. (I've learned not take
those PHP warnings so seriously... and to clear socket errors.)
so i admittedly stopped following your numerous threads after a 
while... mainly for the simple fact that i've never worked with 
sockets thus had nothing to contribute...

but how praytell did you solve your problem?
A combination of randomly following some (but not all) advice from this 
list and injecting enough debugging code to figure out myself what is 
going on. What threw me was the serious (but not Fatal) PHP Warnings 
that appeared when my socket was timing out. That, and I didn't clear 
the socket_last_error($socket). After ignoring the warnings, and 
clearing the error, and setting the socket options appropriately, the 
client loops, waits, executes and loops some more.

...Rene
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php