lithium\net\socket\Stream::close()

public method

Closes the stream

Returns

boolean

True on closed connection

Source

	public function close() {
		if (!is_resource($this->_resource)) {
			return true;
		}
		fclose($this->_resource);

		if (is_resource($this->_resource)) {
			$this->close();
		}
		return true;
	}