예제 #1
0
/**
 * This routine waits until given ET system is alive.
 *
 * @param id     ET system id.
 *
 * @returns @ref ET_OK             if successful and ET is alive.
 * @returns @ref ET_ERROR_WRITE    if remote client and network writing error.
 * @returns @ref ET_ERROR_READ     if remote client and network reading error.
 */
int et_wait_for_alive(et_sys_id id) {

    et_id *etid = (et_id *) id;

    if (etid->locality == ET_REMOTE) {
        return etr_wait_for_alive(id);
    }
    else if (etid->locality == ET_LOCAL_NOSHARE) {
        return etn_wait_for_alive(id);
    }
    return etl_wait_for_alive(id);
}
예제 #2
0
int et_wait_for_alive(et_sys_id id)
{
  return etr_wait_for_alive(id);
}