sockets problem
| From: | Gareth Thomas | Date: | Fri, 22 Nov 2002 03:12:23 +0000 |
| Subject: | sockets problem | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-17081@lists.php.net to get a copy of this message | ||
Hi,
I realise that sockets is still 'experimental' but any help will be much appreciated. I am
developing a queue system to send commands across from a server to a client using sockets. Problem
is that the I keep getting a 'connection reset by peer' error after the first command is
sent. The server script itself is in a loop which I believe should maintain the socket connection. I
am using socket_write() to send the data across the socket, and I am wondering if I should be using
socket_send()? Does anyone have any ideas or experience of doing this?
My PHP version is 4.2.3. My server software is running on Windows and client software on Linux
although eventually both will be on Linux.
Thanks.
Gareth