Datasnap.Win.SConnect.TStreamedConnection.DoConnect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DoConnect; override;

C++

virtual void __fastcall DoConnect();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Datasnap.Win.SConnect.pas
Datasnap.Win.SConnect.hpp
Datasnap.Win.SConnect TStreamedConnection

Description

Connects to an application server.

DoConnect is called internally when the Connected property is set to true. DoConnect creates a separate thread for managing the connection so that communication with the application server does not block execution in the client application. Using the ITransport interface, DoConnect connects to the application server and sets the value of the AppServer property to its interface.

Note: Descendants of TStreamedConnection override CreateTransport rather than DoConnect to change the way the client application forms a connection to application servers.

See Also