Midware TClientWSocket.OnCommand

From Overbyte
Jump to navigation Jump to search

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.

Occurs when a command has been received from client.