RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStreamedConnection.InterceptName Property

Specifies the ProgID of a COM object that manipulates interface calls before they are sent or after return values are received.

Pascal
property InterceptName: string;
C++
__property AnsiString InterceptName;

Set InterceptName to the programmatic ID (ProgID) of a COM object that intercepts messages between the connection component and an application server before they are sent and after they are received.

Note: In Delphi, you can choose the ProgID of any COM objects that have been registered to perform this task at Design time, using a drop-down list in the Object Inspector, if they use TPacketInterceptFactory as a class factory.
The COM object must implement the IDataIntercept interface. Use the IDataIntercept methods to manipulate the data that is communicated using the socket connection. For example, applications can use these methods to encrypt and decrypt data or to compress and decompress data.
Tip: To specify the COM object that intercepts messages using a GUID instead of a ProgID, use the InterceptGUID property instead.
Note: When using InterceptName, the server must use the same COM object to undo the transformation performed by the socket connection component's InterceptName. For servers that respond to TSocketConnection, you can set the COM object that the server uses with the Socket server dialog of ScktSrvr.exe.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!