PEAR Manual
This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.
require_once 'Net/Socket.php';
boolean Net_Socket::setTimeout (integer $seconds, integer $microseconds)
boolean Net_Socket::setTimeout
Sets the timeout value on socket descriptor, expressed in the sum of seconds and microseconds.
integer $seconds - seconds part
integer $microseconds - microseconds part
boolean - Returns TRUE on success, PEAR_Error on failure.
Table 47-1. Possible PEAR_Error values
This function can not be called statically.