Socket problem
| From: | Adrian Zaharia | Date: | Thu, 29 May 2003 08:24:24 +0000 |
| Subject: | Socket problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-149382@lists.php.net to get a copy of this message | ||
Hi,
I try to make a script which runs 24/7 and which connects to a socket
based news feed and fetches some data whenever the server sends it.
The problem is that if i disconnect the client machine from the network,
the program is not making any difference between receiving nothing cause
server sends nothing, and receiving nothing cause it has no network.
Also, didn't found any way to set a timeout.
A bigger problem is that when i start the network, the program simply hangs.
Can anybody give me a hint? I saw similar previous postings without any
reply. Maybe i will be the lucky one.
Regards,
Adrian