Difference between revisions of "Midware TAppServer.OnClientTimeout"

From Overbyte
Jump to navigation Jump to search
 
Line 3: Line 3:
 
== Definition ==
 
== Definition ==
  
'''property''' OnClientTimeout: '''TClientTimeoutEvent''';
+
<syntaxhighlight lang="delphi">
 +
type
 +
TClientTimeoutEvent = procedure (Sender      : TObject;
 +
                                CliWSocket  : TClientWSocket;
 +
                                var CanClose : Boolean) of object;
 +
 
 +
property OnClientTimeout : TClientTimeoutEvent;
 +
</syntaxhighlight>
  
 
== Description ==
 
== Description ==

Latest revision as of 08:46, 14 May 2011

Main page -> Midware component reference -> TAppServer -> OnClientTimeout

Definition

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

                                CliWSocket   : TClientWSocket;
                                var CanClose : Boolean) of object;

property OnClientTimeout : TClientTimeoutEvent; </syntaxhighlight>

Description

Occurs when a client is disconnected because of lack of activity.

When a client had no more activity during some time specified by the ClientTimeout property, it is automatically disconnected. If this occurs, the OnClientTimeout event is triggred. The argument CanClose passed by var if initialized to TRUE. The event handler may reset it to FALSE so that the client is not disconnected.