-
Notifications
You must be signed in to change notification settings - Fork 53
SVC
Jurek Muszyński edited this page Apr 10, 2019
·
2 revisions
For use in silgy_app_continue() and silgy_svc_main(). Compares service name with string.
Returns true if service matches string, otherwise false.
void silgy_app_continue(int ci, const char *data)
{
if ( SVC("getCustomer") )
{
if ( ASYNC_ERR_CODE == ERR_ASYNC_TIMEOUT )
{
WAR("getCustomer timeout-ed");
OUT("<p>There was no response from getCustomer service</p>");
}
else if ( ASYNC_ERR_CODE == OK )
{
OUT("<p>Customer data: %s</p>", data);
}
OUT_HTML_FOOTER;
}
}