lithium\net\socket\Stream::timeout()
Implements
lithium\net\Socket::timeout()
Set timeout period on a stream.
Parameters
-
integer
$time
The timeout value in seconds.
Returns
booleanLinks
Source
public function timeout($time) {
if (!is_resource($this->_resource)) {
return false;
}
return stream_set_timeout($this->_resource, $time);
}