You are here: SwitchKit® Development Environment - TCAP Interface User’s Guide > 4 SKIM Sample Application > Step Two: Creating an Instance of SKIM API Class

Step Two: Creating an Instance of SKIM API Class

The API function described in this section allows you to create an instance of a SKIM API class.

Application Code

SKIM_Api api_classptr;

// LOCAL_NODE - value created during configuration

// STACK_ID - Stack Id for the stack instance created during

// configuration.

// CONN_ID - Same as created in step one.

// LOCAL_PC - Local Point Code for stack instance.

// LOCAL_SSN - local subsystem number for stack instance.

// APP_TransHandler - Default Handler for handling incoming

// TCAP Transaction messages.

// APP_NotifyHandler - Default Handler for handling incoming

// SKIM notifications.

// tag - Tag to be returned with handler functions.

res = api_classptr.Initialize(LOCAL_NODE, STACK_ID, CONN_ID, LOCAL_PC,

LOCAL_SSN,

APP_TransHandler,

APP_NotifyHandler, NULL);

if (res != SKIM_SUCCESS)

{

printf("\n Initialization FAILED !!!!!!!!!");

api_classptr.Terminate();

exit(0);

}

else

{

printf("\n SUCCESS FROM INITIALIZATION API !!\n");

}

A number that addresses a node in a SS7 network.
See Transaction Capability Application Part.