A module which performs installation to the local storage by HTTP.
More...
Inherits CriDisposable.
|
enum | Status : int { Stop,
Busy,
Complete,
Error
} |
| Status More...
|
|
enum | Error : int {
None,
Timeout,
Memory,
LocalFs,
DNS,
Connection,
SSL,
HTTP,
Internal
} |
| Error type More...
|
|
A module which performs installation to the local storage by HTTP.
- Description:
- Used to install content on the Web server to the local storage.
- Note:
- On iOS, this function works on iOS7 or later.
- Note:
- Before creating an instance of CriWare.CriFsWebInstaller, the module must be initialized by calling the CriWare.CriFsWebInstaller::InitializeModule method.
Error type
- Description:
- Indicates the error type of the installer handle.
Information can be obtained using the CriWare.CriFsWebInstaller::GetStatusInfo function.
- See also
- CriFsWebInstaller::GetStatusInfo
Enumerator |
---|
None |
No error
|
Timeout |
Timeout error
|
Memory |
Memory allocation failed
|
LocalFs |
Local file system error
|
DNS |
DNS error
|
Connection |
Connection error
|
SSL |
SSL error
|
HTTP |
HTTP error
|
Internal |
Internal error
|
override void Dispose |
( |
| ) |
|
|
inline |
Discards the installer.
- Note:
- If you discard the installer during the installation process, the process may be blocked in this function for a long time.
void Copy |
( |
string |
url, |
|
|
string |
dstPath |
|
) |
| |
|
inline |
bool GetCRC32 |
( |
out uint |
ret_val | ) |
|
|
inline |
Acquire the CRC32 calculation result
- Parameters
-
ret_val | For CRC result storage |
- Description:
- Returns a checksum that is valid only in the Status.Complete state.
If it is acquired in a state other than Status.Complete, the CRC result will be 0.
This function can be used only when ModuleConfig.crcEnabled=true .
- See also
- CriFsWebInstaller::StatusInfo
static void FinalizeModule |
( |
| ) |
|
|
inlinestatic |
static void ExecuteMain |
( |
| ) |
|
|
inlinestatic |
Runs the server process
- Description:
- Executes the server processing. It should be run regularly.
static bool SetRequestHeader |
( |
string |
field, |
|
|
string |
value |
|
) |
| |
|
inlinestatic |
Changes the information in the HTTP request header.
- Parameters
-
field | Field name |
value | Field value |
- Description:
- Changes the information in the HTTP request header.
This function must be called after calling the CriWare.CriFsWebInstaller::InitializeModule function.
Call this function before invoking the installation.
If the field name is already registered, the field value will be overwritten.
If null is passed as the field value, the field is removed.
const int InvalidHttpStatusCode = -1 |
Invalid HTTP status code
- Description:
- A constant that represents an invalid HTTP status code.
It is set when the installation fails due to a reason other than HTTP.
This value is guaranteed to be negative.
- See also
- CriFsWebInstaller::StatusInfo.httpStatusCode
const long InvalidContentsSize = -1 |
The documentation for this class was generated from the following file: