Net_Socket::setTimeout()

Net_Socket::setTimeout() -- sets timeout

Referentiesamenvatting

require_once 'Net/Socket.php';

boolean Net_Socket::setTimeout (integer $seconds, integer $microseconds)

Beschrijving

Sets the timeout value on socket descriptor, expressed in the sum of seconds and microseconds.

Parameter

Return waarde

boolean - Geeft TRUE terug bij success, PEAR_Error als het faalt.

Throws

Tabel 49-1. Mogelijke PEAR_Error waarden

Error codeError messageReasonSolution
NULL"not connected" There is no open connection. You must establish a connection before ( Net_Socket::connect()).

Note

Deze functie kan niet statisch worden aangeroepen.