On Sun, 2002-04-28 at 18:31, J Smith wrote:
> 
> One way to find which socket has died, if any, is to loop through each 
> socket in the three sets (read/write/exceptions) and do a select() on each 
> one to see if you can read with a timeout of 0. (The bad one being the one 
> where select() returns -1, I think.)
> 
> J
> 

socket_select returns NULL on error. 

-Jason
> 
> Steve Meyers wrote:
> 
> > There's only one thing it's missing -- the equivalent of
> > socket_get_status(), which is not part of the extension, despite the name.
> > If I set my socket to nonblocking, the only way to tell if it has died is
> > to try to write to it, which isn't always a desirable thing to do :)
> > 
> > Unless there's another way that I just don't understand.
> > 
> 
> 
> -- 
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to