ftp_pure::_settimeout()publicWP 1.0

<!-- --------------------------------------------------------------------------------------- --> <!-- Private functions --> <!-- --------------------------------------------------------------------------------------- -->

Method of the class: ftp_pure{}

No Hooks.

Return

null. Nothing (null).

Usage

$ftp_pure = new ftp_pure();
$ftp_pure->_settimeout( $sock );
$sock (required)
-

ftp_pure::_settimeout() code WP 6.6.2

function _settimeout($sock) {
	if(!@stream_set_timeout($sock, $this->_timeout)) {
		$this->PushError('_settimeout','socket set send timeout');
		$this->_quit();
		return FALSE;
	}
	return TRUE;
}