TCPIP_STACK_InitializeDataGet Function

C

bool TCPIP_STACK_InitializeDataGet(
    SYS_MODULE_OBJ object, 
    TCPIP_STACK_INIT* pStackInit
);

Description

This function returns the data that was used for the last call to the TCPIP_STACK_Initialize().

Preconditions

The TCP/IP stack should have been initialized by TCPIP_STACK_Initialize() and the TCPIP_STACK_Status() returned SYS_STATUS_READY.

Returns

  • True - If the stack is up and running and the stack init data has been copied.

  • False - If the stack is down or an error has occurred.

Remarks

The stack does not make a persistent copy of the TCPIP_NETWORK_CONFIG and TCPIP_STACK_MODULE_CONFIG data that are passed in the TCPIP_STACK_INIT at the moment of the stack initialization. It is up to the application to insure that the initialization data is still available after the TCPIP_STACK_Initialize() has been called if this API is used.

Example

TCPIP_STACK_INIT initData;
TCPIP_STACK_InitializeDataGet(tcpipObject, &initData);