mco_fh_mod_get_stats

Retrieves the module’s statistics for UI reporting.

Prototype

    mco_fh_ret mco_fh_mod_get_stats(/*IN*/ mco_fh_module_h h,
                                    /*OUT*/ mco_uint8 *connected_at,
                                    /*OUT*/ mco_uint8 *num_msgs)

Arguments

h
The module handle.
connected_at
Output parameter: The timestamp of the module’s connection.
num_msgs
Output parameter: The number of network messages received by the module.

Description

This function retrieves the module’s statistics for UI reporting: the timestamp of the connection, returned in argument connected_at, and the number of network messages received, returned in argument num_msgs.

Return Codes

mco_fh_ret
The status code MCO_FH_OK if successful, otherwise one of the error codes specified in the Feed Handler Return codes page.

Example

    mco_fh_ret mco_fh_mod_get_stats(mco_fh_module_h h, mco_uint8 *connected_at,
                                    mco_uint8 *num_msgs)
    {
        return reinterpret_cast<TestFeedHandler *>(h)->getStats(connected_at, num_msgs);
    }