Datasnap.DataBkr.DisableSocketTransport

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Datasnap.DataBkr.pas
Datasnap.DataBkr.hpp
Unit: Datasnap.DataBkr
Parent: Datasnap.DataBkr

Delphi

procedure DisableSocketTransport(const ClassID: string);

C++

extern DELPHI_PACKAGE void __fastcall DisableSocketTransport(const System::UnicodeString ClassID);

Description

Unregisters a remote data module so clients cannot access it using a Socket connection.

When working in Delphi, the Remote Data Module Wizard automatically adds a call to DisableSocketTransport to the overridden UpdateRegistry method of the new remote data module class. This removes the registry entries that Scktsrvr.exe uses to check whether clients can access the application server. The registry entries are added by a call to EnableSocketTransport (also added to UpdateRegistry).

To make an application server unavailable to Socket-based connections, remove these two calls from UpdateRegistry. The application server can still receive requests over connections formed using other protocols.

ClassID is the class ID of the remote data module. This value is passed as a parameter to the UpdateRegistry method that calls DisableSocketTransport.

See Also