Simulates the operating mode of HFSQL Client/Server on an ADSL or 3G network.
Note: This function is used to test (in local or in LAN) an application that uses HFSQL in the conditions of an ADSL or 3G network. This function slows down all the communications between the client and the HFSQL server.
This function is used when debugging and optimizing an application.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
// Simulate the 3G network
Proc_Process() // Process whose performance in 3G must be analyzed
// Back to a standard operating mode
<Result> = HSimulateNetwork([<Connection name>, ] <Type of Network>)
- True if the simulation is started,
- False if an error occurred.
<Connection name>: Optional character string
Name of a connection, defined in the data model editor or dynamically by HDescribeConnection. This connection must be a connection to a HFSQL Client/Server database.
If this parameter is not specified, the simulation is applied to all the current and forthcoming connections.
<Type of Network>: Integer constant
Type of network to simulate:
|h3G||Type of network to simulate: 3G|
|hADSL||Type of network to simulate: ADSL|
|hNone||Used to disable the simulation of a specific network.|
- This function must not be used in a deployed application. This function is used when debugging and optimizing an application.
- This function increases the latency and reduces the throughput of the network connections used for HFSQL Client/Server.