# mco_HA_get_io_channel

This function returns a pointer to the communication channel of the replica referenced by the master database handle and the index of the replica.

### For an overview see page HA Applications

### Prototype

        mco_channel_h	mco_HA_get_io_channel(	mco_db_h db, int2 index )

### Arguments

db | Connection handle to master database
index | Index of the replica (from 0 to `mco_HA_get_number_of_replicas()` – 1 ).

### Description

This function is called by the master to get the I/O channel of the replica referenced by the master database handle and the index of the replica.

### Return Codes

mco_channel_h | The I/O channel of the indicated replica or Null