Retrieves congestion level activity statistics from the ISUP service.
DWORD ISUPGetApiStats ( CTAHD ctahd, ISUPAPISTATS *pStats, U8 reset)
Argument |
Description |
ctahd |
Natural Access handle returned by ctaCreateContext. |
pStats |
Pointer to the address of the buffer where statistics are returned to the caller: typedef struct |
reset |
If non-zero, statistics are reset after returning the statistics to the application. |
Return value |
Description |
ISUP_SUCCESS |
|
CTAERR_INVALID_CTAHD |
Natural Access handle is invalid. |
<NMSBREAK>
ISUPAPISTATS pStats;
DWORD status;
CTAHD FstCtaHd = Valid CTA Handle;
status = ISUPGetApiStats(FstCtaHd, &pStats, 0);
if (status != ISUP_SUCCESS)
printf("isuporig: ISUPGetApiStats() failed status = %d\n", status);
else
{
printf("qCount = %x\n", pStats.qCount);
printf("qPeak = %x\n", pStats.qPeak);
printf("txPending = %x\n", pStats.txPending);
printf("txPendPeak = %x\n", pStats.txPendPeak);
printf("txSuccess = %x\n", pStats.txSuccess);
printf("txFailed = %x\n", pStats.txFailed);
printf("txLastErr = %x\n", pStats.txLastErr);
printf("rxSuccess = %x\n", pStats.rxSuccess);
printf("apiQCongLvl = %x\n", pStats.apiQCongLvl);
printf("isupCongLvl = %x\n", pStats.isupCongLvl);
printf("isupCongSrc = %x\n", pStats.isupCongSrc);
}