ftp_base::SetTimeout()publicWP 1.0

Method of the class: ftp_base{}

No Hooks.

Return

null. Nothing (null).

Usage

$ftp_base = new ftp_base();
$ftp_base->SetTimeout( $timeout );
$timeout **
-
Default: 30

ftp_base::SetTimeout() code WP 6.5.2

function SetTimeout($timeout=30) {
	$this->_timeout=$timeout;
	$this->SendMSG("Timeout ".$this->_timeout);
	if($this->_connected)
		if(!$this->_settimeout($this->_ftp_control_sock)) return FALSE;
	return TRUE;
}