API:Datasnap.Win.SConnect.TSocketConnection.DoConnect
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 | TSocketConnection |
Description
Connects to an application server.
Datasnap.Win.SConnect.TSocketConnection.DoConnect inherits from Datasnap.Win.SConnect.TStreamedConnection.DoConnect. All content below this line refers to Datasnap.Win.SConnect.TStreamedConnection.DoConnect.
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.