Skip to content
Jurek Muszyński edited this page Apr 10, 2019 · 2 revisions

bool SVC(const char *string)

Description

For use in silgy_app_continue() and silgy_svc_main(). Compares service name with string.

Returns

Returns true if service matches string, otherwise false.

Example

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;
    }
}
Clone this wiki locally