Difference between revisions of "Midware TAppSrvClient.OnBeforeProcessReply"

From Overbyte
Jump to navigation Jump to search
 
Line 3: Line 3:
 
== Definition ==
 
== Definition ==
  
  '''property''' OnBeforeProcessReply: '''TProcessReplyEvent''';
+
<syntaxhighlight lang="delphi">
 +
type
 +
TProcessReplyEvent = procedure (Sender : TObject; var CmdBuf : PChar; var CmdLen  : Integer) of object;
 +
 
 +
property OnBeforeProcessReply : TProcessReplyEvent;
 +
</syntaxhighlight>
  
 
== Description ==
 
== Description ==

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.