Step Five: Receiving Notifications

 

Notifications are received via notification handler, registered during initialization. A sample implementation for the notification handler is shown in the following code excerpt.

 

 

Application Code

int APP_NotifyHandler( SKIM_Notify ¬ify, void *tag)

{

printf("APP_NotifyHandler Invoked\n");

int type = notify.GetType();

 

switch(type)

{

case SKIM_NOTIFY_OP_TIMEOUT :

 

printf ("Operation Timeout Notification Message Received\n");

 

break;

 

case SKIM_NOTIFY_SCCP_MGMT_IND :

 

printf ("SCCP Management Notification Message Received\n");

 

break;

 

case SKIM_NOTIFY_MTP3_MGMT_IND :

 

printf ("MTP3 Management Notification Message Received\n");

 

break;

 

case SKIM_NOTIFY_INTERNAL_ERROR :

 

printf ("SKIM Internal Error Notification Message Received\n");

 

break;

 

default :

 

printf("Unknown Notification Received \n");

 

break;

};

return SKIM_SUCCESS;

}