RE: how to close a socket output, leave input

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx]
Sent: Friday, December 08, 2006 3:39 AM
To: php-general
Subject:  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@xxxxxxxxxx
2006-12-08

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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux