mco_HA_get_channel_info

This function returns information about the I/O channel.

For an overview, see the HA Applications page.

Prototype

    mco_channel_info_t mco_HA_get_channel_info(mco_channel_h chan);

Arguments

chan
The I/O channel of the replica.

Description

This function is called by a replica to get information about the I/O channel.

Return Codes

mco_channel_info_t
The I/O channel information described below.

I/O channel info is defined as follows

    typedef struct mco_channel_info_t_
    {
        char* protocol_type;
        mco_counter_t BytesSent;
        mco_counter_t BytesRcvd;
        mco_bool support_unreliable;
        mco_bool async_mode;
    } mco_channel_info_t, *mco_channel_info_h;
protocol_type
The network protocol type name.
BytesSent
The number of bytes sent.
BytesRcvd
The number of bytes received.
support_unreliable
True if the transport supports unreliable data transfer.
async_mode
True if the master is currently in asynchronous mode (that is, the MCO_HAMODE_ASYNCH flag was set and the replica did not set the MCO_HAMODE_FORCE_SYNC flag).