TMedConnection.MedDiscTm TMedConnection

procedure MedDiscTm( nDisconnectTimeout: Integer );

Description

The function specifies the time after which the Mediator server will disconnect and log off the workstation that lost communication with the server due to the network damage or turning the power off. The nDisconnectTimeout argument specifies time in seconds and it can have values within the range 20-10000.

Calling the function with zero parameter resets the disconnection time to default: MedDiscTm(0)

The following command turns client disconnection mechanism off: MedDiscTm(65535)

It can be very usefull if you experience problems with connection timeout during debugging your application in Delphi IDE environment.

See also: Debugging applications