怎么用?不是说得很清楚了吗?<br>{<br> NOTE: This demo requires the ZLib units found in the extras directory on the<br> CD.<br><br> The Socket Server has the ability to install an interception COM object that<br> can be called whenever it receives or sends data. Using this feature, you<br> can encrypt or compress data using any method you wish. This demo uses the<br> ZLib compression units that ship on the CD to compress/uncompress all data<br> going over the wire.<br><br> To use this demo;<br> 1) Make sure you have copied the ZLib units from the CD to a directory and<br> have added that directory to this projects search path.<br> 2) Compile Intrcpt.dpr.<br> 3) Register Intrcpt.DLL using REGSVR32 or TREGSVR on both the client and the<br> server.<br> 4) On the Server: Bring up the properties for the Socket Server (right click<br> on the icon in the task bar and select properties) and put the GUID for<br> Intrcpt.DLL in the Interceptor GUID edit control. The GUID is defined<br> below as Class_DataCompressor.<br> 5) On the Client: Set the TSocketConnection.InterceptName property to<br> Intrcpt.DataCompressor. This will set the InterceptGUID property to the<br> Class_DataCompressor GUID. Recompile your client.<br>}<br><br><br>这种是方法是Delphi推荐的方法,它在SConnect中提供了DataIn和DataOut的接口。