Requesting Information

Clear Statistics

lgo_ClearStatistics()

Clear the statistics table on a connection.

Syntax
#include "laygo.h"

LResult lgo_ClearStatistics
    (
        LCid    cid
    );
cidconnection to clear statistics on
Description

If a statistics table is being maintained on the connection, lgo_ClearStatistics() sets all values to zero. LayGO modules do not automatically clear their own statistics tables between connections.

Return Values

If successful, lgo_ClearStatistics() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:

See Also

lgo_GetStatistics()

Example
lgo_GetStatistics(cid, buffer, bufCapacity);

statStrings = lgo_StatisticMessages(lgo_Protocol(cid));
/* display statistics here */
lgo_ClearStatistics(cid);