Interpreting Return Codes
lgo_StatisticMessages()
Retrieve a set of human-readable strings describing the statistics kept by a protocol.
#include "laygomsg.h"
LMessageTable lgo_StatisticMessages
(
LProtocol protocol
);
| protocol | protocol to retrieve statistics descriptions for |
lgo_StatisticMessages() retrieves a set of human-readable strings describing the statistics kept by a protocol.
All calls to lgo_StatisticMessages() are successful.
If the protocol code is not defined, a NULL is returned.
if ((bytes = lgo_GetStatistics(cid, buffer, size) > 0)
{
statStrings =
lgo_StatisticMessages(lgo_Protocol(cid));
if (statStrings != NULL)
{
/* dislplay statistics here */
}
}
lgo_ClearStatistics(cid);