Datasnap.Win.SConnect.TSocketConnection

From RAD Studio API Documentation
Jump to: navigation, search

Datasnap.Win.SConnect.TStreamedConnectionDatasnap.Win.MConnect.TDispatchConnectionDatasnap.DBClient.TCustomRemoteServerData.DB.TCustomConnectionSystem.Classes.TComponentTSocketConnection

Delphi

TSocketConnection = class(TStreamedConnection)

C++

class PASCALIMPLEMENTATION TSocketConnection : public TStreamedConnection

Properties

Type Visibility Source Unit Parent
class public
Datasnap.Win.SConnect.pas
Datasnap.Win.SConnect.hpp
Datasnap.Win.SConnect Datasnap.Win.SConnect

Description

TSocketConnection uses Windows sockets to manage the connection to an application server.

TSocketConnection is used in the client portion of a multi-tiered database application to establish and maintain the connection between the client and a remote application server. The Socket connection object can

Establish an initial connection to a remote application server.

Obtain an IAppServer for the application server.

Call into a separate COM object that encodes and decodes the content of messages.

Obtain a list of providers on the application server.

Drop the connection to the remote application server.

TSocketConnection establishes the initial connection between the client application and a remote application server using TCP/IP. To use TSocketConnection, the application server must be running ScktSrvr.exe.

Once the connection is established, the client registers any or all of its client datasets, and these client datasets use the IAppServer interface from the socket connection component to communicate with providers on the application server, or to otherwise call the application server's data module interface.

To connect to remote application servers using DCOM, use the TDCOMConnection component instead. To connect to remote application servers using HTTP, use the TWebConnection component instead. To connect using SOAP, use the TSoapConnection component.

See Also