On Server Close Connection Database Method

4D - Documentation   Français   English   German   4D Server 2004, Theme List   4D Server 2004, Index   Back   Previous   Next

version 6.8 (Modified)


The On Server Close Connection Database Method is called once on the Server machine each time a connection process ends.

As for the On Server Open Connection Database Method, 4D Server passes three Long Integer parameters to the On Server Close Connection Database Method. On the other hand, no result is expected by 4D Server.

The method must therefore be explicitly declared with three Long Integer parameters:

   C_LONGINT($1;$2;$3)

This table details the information provided by the three parameters passed to the database method:

ParameterDescription
$1User ID number used internally by 4D Server to identify users
$2Connection ID number used internally by 4D Server to identify a connection
$3Network protocol ID number used internally by 4D Server

Note: Since 4D Server version 6.8, the $3 parameter always returns 2 or 29.

The On Server Close Connection Database Method is the exact counterpoint to the On Server Open Connection Database Method. For more information and a description of the connection processes, see the description of this database method.

Example

See the first example for On Server Open Connection Database Method.

See Also

Database Methods, On Server Open Connection Database Method.


4D - Documentation   Français   English   German   4D Server 2004, Theme List   4D Server 2004, Index   Back   Previous   Next