Difference between revisions of "Midware TAppSrvClient.OnBeforeProcessReply"
(Created page with ' Main page -> Midware component reference -> TAppSrvClient -> [[Midware_TAppSrvClient.OnBeforeProcessR…') |
|||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
== Definition == | == Definition == | ||
− | + | <syntaxhighlight lang="delphi"> | |
+ | type | ||
+ | TProcessReplyEvent = procedure (Sender : TObject; var CmdBuf : PChar; var CmdLen : Integer) of object; | ||
+ | |||
+ | property OnBeforeProcessReply : TProcessReplyEvent; | ||
+ | </syntaxhighlight> | ||
== Description == | == Description == | ||
Occurs when a reply has been received and before it is processed. | Occurs when a reply has been received and before it is processed. | ||
+ | |||
The event OnBeforeProcessReply is triggered when a reply have been received from the server, just before it is processed for header and body extraction. This event is the right place to decrypt or decompress data sent by the server. The event handler can allocate some resource or memory and change the parameters passed. To free resource and memory, use the OnAfterProcessReply event which will pass the same arguments. | The event OnBeforeProcessReply is triggered when a reply have been received from the server, just before it is processed for header and body extraction. This event is the right place to decrypt or decompress data sent by the server. The event handler can allocate some resource or memory and change the parameters passed. To free resource and memory, use the OnAfterProcessReply event which will pass the same arguments. | ||
− | |||
− |
Latest revision as of 09:51, 14 May 2011
Main page -> Midware component reference -> TAppSrvClient -> OnBeforeProcessReply
Definition
<syntaxhighlight lang="delphi"> type TProcessReplyEvent = procedure (Sender : TObject; var CmdBuf : PChar; var CmdLen : Integer) of object;
property OnBeforeProcessReply : TProcessReplyEvent; </syntaxhighlight>
Description
Occurs when a reply has been received and before it is processed.
The event OnBeforeProcessReply is triggered when a reply have been received from the server, just before it is processed for header and body extraction. This event is the right place to decrypt or decompress data sent by the server. The event handler can allocate some resource or memory and change the parameters passed. To free resource and memory, use the OnAfterProcessReply event which will pass the same arguments.