RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDataIntercept Interface

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

Pascal
IDataIntercept = interface;
C++
__interface IDataIntercept;

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. 

 

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