Difference between revisions of "Midware TClientWSocket.OnCommand"

From Overbyte
Jump to navigation Jump to search
(Created page with ' Main page -> Midware component reference -> TClientWSocket -> [[Midware_TClientWSocket.OnCommand | O…')
 
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
== Definition ==
 
== Definition ==
  
  '''property''' OnCommand: '''TCommandEvent''';
+
<syntaxhighlight lang="delphi">
 +
type
 +
TCommandEvent = procedure (Sender : TObject;
 +
                          CmdBuf : PChar;
 +
                          CmdLen : Integer) of object;
 +
</syntaxhighlight>
  
 
== Description ==
 
== Description ==
  
 
Triggered when a client request (command) has been received. It is used by TAppServer to trigger command processing. A client request is simply a line of text delimited by a CR/LF pair.
 
Triggered when a client request (command) has been received. It is used by TAppServer to trigger command processing. A client request is simply a line of text delimited by a CR/LF pair.
 
Occurs when a command has been received from client.
 

Latest revision as of 14:21, 14 May 2011

Main page -> Midware component reference -> TClientWSocket -> OnCommand

Definition

<syntaxhighlight lang="delphi"> type TCommandEvent = procedure (Sender : TObject;

                          CmdBuf : PChar; 
                          CmdLen : Integer) of object;

</syntaxhighlight>

Description

Triggered when a client request (command) has been received. It is used by TAppServer to trigger command processing. A client request is simply a line of text delimited by a CR/LF pair.