Return the connection address.
const char * mco_iot_conn_get_address(iot_connection_h iotc);
iotc
iot_connection_h).This function returns the connection address through the connection handle (for connect-sockets).
const char *
mco_iot_comm_connect_async() or mco_iot_replicator_connect(); otherwise NULL.
{
...
// Print the peer address for agent_id:
mco_iot_connection_h conn = mco_iot_comm_find_conn(comm, agent_id);
printf("Address : %s\n", mco_iot_conn_get_address(conn));
mco_iot_conn_release(conn);
...
}