PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
HSimulateNetwork (Function)
In french: HSimuleRéseau
HFSQL Client/ServerAvailable only with this kind of connection
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.
Example
// Simulate the 3G network
HSimulateNetwork(h3G)
ProfilerStart()
Proc_Process() // Process whose performance in 3G must be analyzed
ProfilerEnd()
// Back to a standard operating mode
HSimulateNetwork(hNone)
Syntax
<Result> = HSimulateNetwork([<Connection name>, ] <Type of Network>)
<Result>: Boolean
  • 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:
h3GType of network to simulate: 3G
hADSLType of network to simulate: ADSL
hNoneUsed to disable the simulation of a specific network.
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.
Component : wd240hf.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment