note 76699 deleted from function.socket-recv by torben

From: Date: Tue, 22 Sep 2009 01:54:43 +0000
Subject: note 76699 deleted from function.socket-recv by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160910@lists.php.net to get a copy of this message
Note Submitter: teamcms * gmail * com ---- Return value: ----------------------------- a) on success returns number of bytes read b) in case of no data on line, returns zero and $buf will be set to NULL. c) on failure returns false, and $buf will be set to NULL. To get the error code/message, call the appropriate socket functions. d) in case of disconnect, the function returns either b) or c) which depends on how connection was closed from the other end. It returns 0 if the connection was closed gracefully with FIN squence and false if it was reset.

« previous php.notes (#160910) next »