mco_fh_mod_start

Requests that the module begin execution.

Prototype

    mco_fh_ret mco_fh_mod_start(/*IN*/ mco_fh_module_h h);

Arguments

h
The module handle.

Description

This function requests that the module begin execution. The module should launch separate threads and return control immediately.

Return Codes

MCO_FH_OK
Module successfully started.
MCO_FH_E_INVALID_CONFIG
The configuration supplied by the user in the “config” subsection of the handler module’s configuration is invalid.
MCO_FH_E_CONN_FAILURE
The network connection has failed.
MCO_FH_E_SYSTEM_ERROR
A system error (e.g. I/O error) has occurred.
MCO_FH_E_BAD_HANDLE
The module handle is invalid.

Example

    mco_fh_ret mco_fh_mod_start(mco_fh_module_h h)
    {
        return reinterpret_cast<TestFeedHandler *>(h)->start();
    }