You are here: SwitchKit Programmer’s Guide > 6 Handler Functions > sk_setGroupHandler()
Description
The sk_setGroupHandler() function installs HandlerFunc as the group handler. If there is currently a stack of handler functions, it is cleared first. This function is also available as skts_setGroupHandler().
int sk_setGroupHandler(char *aChannelGroupName, void *aTag, aHandlerFunc*);
int skts_setGroupHandler( char *aChannelGroupName, void *aTag, HandlerFunc* aHandlerFunc );
The function parameters are shown in the table below.
Argument |
Description |
---|---|
aGroupName |
Specifies the group. |
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. |
Possible return values for this function:
SK_LOST_LLC |
This return value indicates that your application lost contact with the LLC. |