WordPress at Your Fingertips
function is not described

Snoopy::_check_timeout() public WP 1.0

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

No Hooks.

Return

null. Nothing.

Usage

$Snoopy = new Snoopy();
$Snoopy->_check_timeout( $fp );
$fp (required)
-

Code of Snoopy::_check_timeout() WP 5.8.2

function _check_timeout($fp)
{
	if ($this->read_timeout > 0) {
		$fp_status = socket_get_status($fp);
		if ($fp_status["timed_out"]) {
			$this->timed_out = true;
			return true;
		}
	}
	return false;
}