sk_setDefaultHandler()

Description

The sk_setDefaultHandler() function installs aHandlerFunc as the default handler. If there is currently a stack of handler functions, it is cleared first. This function is also available as skts_setDefaultHandler().

Syntax

int sk_setDefaultHandler(void *aTag, HandlerFunc* aHandlerFunc );

Threadsafe Syntax

int skts_setDefaultHandler(void *aTag, HandlerFunc* aHandlerFunc );

Parameters

The function parameters are shown in the table below.

Argument

Description

aTag

An application defined pointer which will be returned to the application when a handler is invoked.

aHandlerFunc

A pointer to a function that is designed to handle messages.

Return Values

Possible return values for this function:

SK_LOST_LLC

This return value indicates that your application lost contact with the LLC.