Datasnap.Win.MConnect.TCustomObjectBroker.SetConnectStatus

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetConnectStatus(ComputerName: string; Success: Boolean); virtual; abstract;

C++

virtual void __fastcall SetConnectStatus(System::UnicodeString ComputerName, bool Success) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Datasnap.Win.MConnect.pas
Datasnap.Win.MConnect.hpp
Datasnap.Win.MConnect TCustomObjectBroker

Description

Records whether a connection was established to a specified server.

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.

See Also