RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSocketConnection Class

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

Pascal
TSocketConnection = class(TStreamedConnection);
C++
class TSocketConnection : public TStreamedConnection;

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!