isConnOpen()

The function checks if the connection from the own user interface manager to the event manager exists. The function is used in a redundant system. With this function, you can find out to which event manager the UI is connected to (to the left or to the right).

Synopsis

bool isConnOpen (int manId);

Parameter

Parameter Description
manId Manager identifier (EVENT_MAN).

Return value

The function returns TRUE if the connection exists otherwise, FALSE.

Error

Description

The function checks whether the connection from the own User Interface Manager to the Event Manager exists. This is important in a redundant system. Using isConnOpen(), you can find out to which event manager (to the left or to the right) the UI is connected to.

Example

main()
{
  int manID;
  bool isConnect;
  dyn_char managers;
  managers = makeDynChar(EVENT_MAN);
  manID = convManIdToInt(EVENT_MAN, 1);
  isConnect = isConnOpen(manID);
  DebugN("UI with number 1 connected: " + isConnect);
}

Assignment

Administration of managers...

Availability

CTRL