You are here: SwitchKit® Development Environment Programmer’s Guide > 6 Handler Functions > sk_setTCAPHandler()
Description
Use the sk_setTCAPHandler() function to organize the flow of TUSI and SUSI messages for your application. Once a stack and subsystem number have been assigned to an application, the sk_setTCAPHandler() function causes the specified handler function to be called whenever a CSP-initiated message arrives on a stack and subsystem number. This function does not affect the routing of any acknowledgment messages. This function is also available as skts_setTCAPHandler().
int sk_setTCAPHandler(int aStackID, int anSSN, void *aTag, HandlerFunc* aHandlerFunc);
int skts_setTCAPHandler(int aStackID, int anSSN, void *aTag, HandlerFunc* aHandlerFunc);
The function parameters are shown in the table below.
Argument |
Description |
---|---|
aStackID |
Identifies Stack ID |
anSSN |
Identified Subsystem number |
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:
OK |
Always returns OK. |