lithium\net\socket\Context::timeout()

public method

Sets the timeout on the socket connection.

Parameters

  • integer $time

    Seconds after the connection times out.

Returns

booelan

true if timeout has been set, false otherwise.

Source

	public function timeout($time = null) {
		if ($time !== null) {
			$this->_timeout = $time;
		}
		return $this->_timeout;
	}