Edge Database Creation Parameters

For an overview, see the Edge Client page.

The mco_edge_params_t structure is used to create an edge database. The structure is defined as follows:

    typedef struct {
        // open mode; analogous to mco_db_params_t::mode_mask (currently unused)
        mco_uint1 mode;
        // maximum number of connections; analogous to
        // mco_db_params_t::db_max_connections
        // default is 16; maximum is 254
        mco_uint1 max_connections;

        // receive (RX) buffer size in bytes; must be in the range 32–16*1024;
        // default is 128
        mco_uint2 recv_buf_size;

        // transmit (TX) buffer size in bytes; must be in the range 32–16*1024;
        // default is 1024
        mco_uint2 send_buf_size;

        // edge client ID; if set overrides the value specified in the DDL schema
        mco_uint8 agent_id;

        // pointer to an abstract socket interface used for communication with the
        //server (see below)
        mco_edge_socket_t* socket;

        // callback invoked by mco_edge_clear(); may be NULL (see below)
        mco_edge_clear_callback_t clear_callback;

        // user-defined context for clear_callback
        void* clear_callback_context;
    } mco_edge_params_t;