- run socket stack processing
#include <$OV_HEADER/ecs/ESOK/sockstack.h> int32 ESOK_process(int32 mSecs);
This function causes socket stack processing to occur.
The ECS socket stack does not retain control, is not signal driven and does not use threads, so it needs to be given control when PDUs are available. This function must be called by the main loop of an application for any processing to happen within the socket stack and to drive event I/O and annotation I/O with any connected ECS correlation engines.
When any of the file descriptors returned by ESOK_getFdSet are active (see select(2)), calling this function will do the processing necessary within the socket stack and may cause registered call back functions to be called.
ESOK_process may return ESOK_NOTHING_DONE when there is still some data to be processed in the socket stack cache. Call ESOK_stackEmpty to check that all socket stack processing has been completed.
int32 mSecs
ECS_SUCCESS
ESOK_NOTHING_DONE
ESOK_NOT_INITIALISED
ESOK_stackInit has not been called.
ESOK_NOT_OPEN
ESOK_COMMUNICATION_ERROR
ESOK_stackEmpty