IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page

◆ CGI_Install_Headers_Table()

int CGI_Install_Headers_Table ( unsigned int  entries,

This function installs a custom headers table. The custom headers table references to the custom MIME table. So the headers table assigns every mime type defined in the MIME table one or more correspondent headers fields.

entriesNumber of entries in custom headers table (must be equal to the custom mime table size).
headersTablePointer to custom headers table
In contrast to the legacy SC1x, SC2x, SC1x3 and SC2x3 systems, the @CHIP-RTOS-LNX does need to make a copy of this custom headers table, because it cannot pass a pointer between separated memory spaces. As a consequence the size of the table itself is limited and the size of the header strings is limited too.

The table can contain up to 20 entries, as the MIME table.

The header strings can be up to 128 characters long, including zero termination. Longer values will be truncated.
zero on success, -1 on failure (wrong number of entries).
See also

Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Feb 9 2018 17:44:49 by Doxygen 1.8.13