Net_Socket::setTimeout()

Net_Socket::setTimeout() -- sets timeout

Synopsis

require_once 'Net/Socket.php';

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

Beschreibung

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

Parameter

Rückgabewert

boolean - Gibt bei Erfolg TRUE zurück, bei einem Fehler ein Objekt der Klasse PEAR_Error.

Fehler-Meldungen

Tabelle 49-1. Mögliche Fehler-Arten

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

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.