Zen API | Contents | Reference | Previous | Up | Next

zFireSync_WriteFile
zFireSync functions
C

    zStatus zFireSync_WriteFile(zFireSync fireSync, const zChar* fileName, const zByte* data, zUIntPtr size, zBool commit);

Parameters

Parameters | Description
zFireSync fireSync | zFireSync object.
const zChar* fileName | Name of the file to save.
const zByte* data | Contents of the file.
zUIntPtr size | Size of the file, in bytes.
zBool commit | If true, the file will be committed to non-volatile storage.

Description

Saves the given file on FireSync server.

Remarks

This function uses the Control channel. If a file with the same name already exists, the file will be overwritten.

If the commit parameter is false, then the file may or may not be committed to storage. Files that are not committed to storage will be lost when the server is re-powered. The commit parameter is typically set to false when writing temporary files to the server; this can reduce flash/disk wear when used with server devices that support volatile files.

File

zFireSync.h

Copyright (c) 2008-2010 by LMI Technologies Inc. All rights reserved.
Contents | Reference