# mco_fh_mod_get_stats

> Retrieve 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 | The returned timestamp of the connection
num_msgs | The returned number of network messages received by the module

### Description

> This function retrieves the module’s statistics for UI reporting.

### 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);
        }