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

public method

Closes the socket connection.

Returns

boolean

Success.

Source

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