Datasnap.Win.SConnect.TSocketConnection.CreateTransport

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: protected
Source:
Datasnap.Win.SConnect.pas
Datasnap.Win.SConnect.hpp
Unit: Datasnap.Win.SConnect
Parent: TSocketConnection

Delphi

function CreateTransport: ITransport; override;

C++

virtual _di_ITransport __fastcall CreateTransport();

Description

Returns an ITransport interface that can be used to connect to and communicate with the application server.

Socket connection components use an ITransport interface to connect to and communicate with the application server. CreateTransport instantiates the internal helper object that connects to the socket dispatcher on the server and sends or receives messages. CreateTransport passes the values of the Host, Address and Port properties to this helper object and returns its ITransport interface.

See Also