ftp_pure::_settimeout
<!-- --------------------------------------------------------------------------------------- --> <!-- Private functions --> <!-- --------------------------------------------------------------------------------------- -->
Method of the class: ftp_pure{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ftp_pure = new ftp_pure(); $ftp_pure->_settimeout( $sock );
- $sock(required)
- .
ftp_pure::_settimeout() ftp pure:: settimeout code WP 6.9.1
function _settimeout($sock) {
if(!@stream_set_timeout($sock, $this->_timeout)) {
$this->PushError('_settimeout','socket set send timeout');
$this->_quit();
return FALSE;
}
return TRUE;
}