In a multi-client environment, succesive calls to tlc_updateSession() can lead to memory fragmentation during the initialisation phase. To avoid this, memory for the index tables should be allocated beforehand based on the overall expected number of telegrams.
There are several ways to pass these additional configuration values to the stack:
Because indexing concerns telegram count , which is related to interfaces (app sessions), point 1. is not a good idea and point 3 is too static. Thus: An additional API call will be used.
Additional configuration call has been added:
TRDP_ERR_T tlc_presetIndexSession (
TRDP_APP_SESSION_T appHandle,
TRDP_IDX_TABLE_T *pIndexTableSizes);