Tracing function calls and events

Natural Access provides a mechanism for tracing function calls and events issued or received by an application. To capture trace messages, the Natural Access Server (ctdaemon) must be running, and the TCAP service must be included in the [ctasys] section of the cta.cfg file, as shown:

[ctasys]
Service = tcap, tcapmgr
...

 

In addition, the application must enable tracing when Natural Access is initialized:

tcapInitparms.size              = sizeof(CTA_INIT_PARMS);
tcapInitparms.traceflags        = CTA_TRACE_ENABLE;
tcapInitparms.parmflags         = CTA_PARM_MGMT_SHARED;
tcapInitparms.ctacompatlevel    = CTA_COMPATLEVEL;

Ret = ctaInitialize(tcapServiceNames, 1, &tcapInitparms);
if (Ret != SUCCESS) {
    printf("ERROR code 0x%08x initializing CT Access.", Ret);
    exit( 1 );
}

For information about tracing, refer to the Natural Access Developer's Reference Manual.