lithium\net\socket\Context::timeout()
Implements
lithium\net\Socket::timeout()
Sets the timeout on the socket connection.
Parameters
-
integer
$time
Seconds after the connection times out.
Returns
booelantrue
if timeout has been set, false
otherwise.
Source
public function timeout($time = null) {
if ($time !== null) {
$this->_timeout = $time;
}
return $this->_timeout;
}