isReduActive()

Returns TRUE if the event manager to which a CTRL or UI manager is connected is currently active.

Synopsis

bool isReduActive();

Parameters

None

Return value

TRUE if the connected event manager is active, FALSE if inactive.

Description

The function returns TRUE if the event manager to which a CTRL or UI manager is connected is currently active. The respective CTRL or UI manager must be started with connection to only one server in the redundant system, otherwise the function will always return TRUE.

By default the UI manager is always started with connection to both servers. If it shall connect to only one server, you have to explicitly configure it (e.g. with starting parameters -data <host name> -event <host name>).

The function always returns TRUE if used in a single system.

Example

main()
{
  bool a = isReduActive();
  DebugN("Event currently active:", a );
}

Assignment

Redu functions

Availability

CTRL, UI