You are here: SwitchKit® Development Environment Programmer’s Guide > 6 Handler Functions > sk_removeLLCConnectionHandler()
sk_removeLLCConnectionHandler()
Description
The sk_removeLLCConnectionHandler() function removes the LLC connection handler associated with the specified tag value. This function is also available as skts_removeLLCConnectionHandler().
int sk_removeLLCConnectionHandler( void *aTag, LLCHandlerFunc *anLLCHandlerFunc);
int skts_removeLLCConnectionHandler( void *aTag, LLCHandlerFunc *anLLCHandlerFunc);
The function parameters are shown in the table below.
Argument |
Description |
---|---|
aTag |
The value used when the LLC connection handler was originally defined using sk_setLLCConnectionHandler(). If the same value is not used, the LLC connection handler will not be removed. |
aHandlerFunc |
A pointer to a function that is designed to handle messages. |
Possible return values for this function:
SK_HANDLER_NOT_FOUND |
A connection handler with the specified tag was not found. No connection handler was removed. |
SK_UNABLE_TO_OBTAIN_LOCK |
Error occurred obtaining a Mutex. (Threadsafe library only.) |
OK |
Success |