Datasnap.Win.SConnect.IDataIntercept

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

IDataIntercept = interface

C++

__interface  INTERFACE_UUID("{B249776B-E429-11D1-AAA4-00C04FA35CFA}") IDataIntercept  : public System::IInterface

Properties

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

Description

IDataIntercept is the interface used by TSocketConnection components to transform data that is communicated over the connection.

IDataIntercept is the interface implemented by data packet interceptors. A data packet interceptor is a COM object that implements IDataIntercept to transform data that is accessed through an IDataBlock interface. TSocketConnection can use a data packet interceptor before messages are sent and after responses are received.

Developers can create a data packet interceptor to encrypt and decrypt data or to compress and decompress messages. The transformation must leave the reserved bytes of the data blocks unchanged or the socket connection component won't be able to communicate properly.

Note: When creating a data packet interceptor in Delphi, use TPacketInterceptFactory as its class factory.

Once you have created and registered a data packet interceptor, Set the InterceptName or InterceptGUID property of a socket connection component to identify the data packet interceptor. This tells the socket connection to instantiate the interceptor and use it to transform messages before they are sent and after they are received. On the server side, right click on the Tray Icon for scktsrvr.exe and assign the interceptor using the properties dialog.

See Also