WordPress at Your Fingertips
function is not described

ftp_pure::_settimeout() public WP 1.0

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

{} It's a method of the class: ftp_pure{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of ftp_pure::_settimeout() WP 5.8.2

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