|
|
|
|
|
<Connection variable>.SimulateNetwork (Function) In french: <Variable Connexion>.SimuleRéseau
Available only with this kind of connection
Simulates how the HFSQL Client/Server works: - on an ADSL, 3G, 4G and 5G network or via the cloud.
- on a slow network with custom settings.
Remark: This function enables you to test an application using HFSQL, either locally or over a LAN, under the conditions of an ADSL, 3G, 4G, 5G or cloud network, or with customized parameters.. This function slows down all the communications between the client and the HFSQL server.
This function is used when debugging and optimizing an application.
MyConnection is Connection
MyConnection.SimulateNetwork(h3G)
ProfilerStart()
Proc_Process()
ProfilerEnd()
MyConnection.SimulateNetwork(hNone)
Syntax
Simulating how HFSQL Client/Server works in a previously configured network Hide the details
<Result> = <Connection>.SimulateNetwork(<Type of network>)
<Result>: Boolean - True if the simulation is launched,
- False if an error occurs.
<Connection>: Connection variable Name of the Connection variable that describes the connection to use. <Type of network>: Integer constant Type of network to simulate: | | h3G | Type of network to be simulated: 3G Characteristics (estimate): Latency: 130ms, Data rate: 1 Mbps | h4G | Network type to be simulated: 4G Specifications (estimate): Latency: 40ms, Throughput: 30 Mbps | h5G | Network type to be simulated: 5G Characteristics (estimate): Latency: 10ms, Throughput: 100 Mbps | hADSL | Network type to be simulated: ADSL Specifications (estimate): Latency: 40ms, Data rate: 8 Mbps | hCloud | Type of network to be simulated: Cloud. Characteristics (estimate): Latency: 10ms, Throughput: 400 Mbps These values apply when the application is used from the same continent as the data center, with a fiber Internet connection. If the application is used from another continent, or with a Wi-Fi connection, it is recommended to use the second syntax of the function by specifying the latency and the speed of the connection. | hNone | Used to disable the simulation of a specific network. |
Simulating how HFSQL Client/Server works in a custom network Hide the details
<Result> = <Connection>.SimulateNetwork(<Latency> , <Bandwidth>)
<Result>: Boolean - True if the simulation is launched,
- False if an error occurs.
<Connection>: Connection variable Name of the Connection variable that describes the connection to use. <Latency>: Integer Simulated latency expressed in milliseconds. This latency is added to the latency of the current network. <Bandwidth>: Real Bandwidth expressed in megabits per second. It represent the time needed to transfer a given amount of data (assuming that the current network has an infinite bandwidth). Remarks - 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|