RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomObjectBroker.SetConnectStatus Method

Records whether a connection was established to a specified server.

Pascal
procedure SetConnectStatus(ComputerName: string; Success: Boolean); virtual; abstract;
C++
virtual __fastcall SetConnectStatus(AnsiString ComputerName, Boolean Success) = 0;

After calling GetComputerForGUID or GetComputerForProgID, connection components use the returned value to open a connection to the identified server. They then call SetConnectStatus to tell the broker whether the connection was successfully opened. 

TCustomObjectBroker declares SetConnectStatus as an abstract (pure virtual) method. Descendants override this method to keep track of when server machines are down or to monitor the number of connections created for each server. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!