ESOK_stackReset

- reset the socket stack

SYNOPSIS

#include <$OV_HEADER/ecs/ESOK/sockstack.h>
int32 ESOK_stackReset(void);

DESCRIPTION

This function resets the socket stack to its initial state. Any outstanding data in the socket stack cache is processed first. This may cause registered receive functions to be called.

This function will close any open connections and should be called before program exit. After this function has been called, ESOK_stackInit must be called to reinitialize the socket stack.

RETURNS

ECS_SUCCESS
Succeeded.
ESOK_NOT_INITIALISED
ESOK_stackInithas not been called.
ESOK_COMMUNICATION_ERROR
Communications error closing connections. This error may be transient and recoverable.