RE: [PHP] how to close a socket output, leave input
| From: | Mustafa Aras Koktas | Date: | Fri, 08 Dec 2006 10:57:00 +0000 |
| Subject: | RE: [PHP] how to close a socket output, leave input | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-245647@lists.php.net to get a copy of this message | ||
Is this for the client application or server?
I assume it is a client as you are trying to read a server response.
socket_write() will return the length of the buffer that is written to
server, so you can check that value to make sure the send is complete.
--Aras
-----Original Message-----
From: nick.yim [mailto:nick.yim@taowap.com]
Sent: Friday, December 08, 2006 3:39 AM
To: php-general
Subject: [PHP] how to close a socket output, leave input
Hello All,
1. create a socket
2. write something
3. (just) close output
4. read the server response
5. close the socket
step 3, i mean close output, let the server know the client send
complete
Best regards,
nick.yim
nick.yim@taowap.com
2006-12-08
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php