reduActive()

In a redundant system, returns the active computer.

Synopsis

int reduActive( int &iAnswer, string sSystem = "")

Parameter

Parameter Description
iAnswer

iAnswer response:

0 ... not redundant

-1 .. not reachable

-2 .. not correct

1 ... Host1

2 ... Host2

sSystem System name

Return value

Error

Description

In a redundant system, returns the active computer.

EXAMPLE

The following example returns the active computer in the redundant system.

main()
{
  string sSys = "System1";
  int iAnswer;
  reduActive(iAnswer,sSys);
  DebugN("Return value:", iAnswer);
}

Assignment

Redu and Dist functions

Availability

CTRL