PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

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.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
New in version 22
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
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.
Components
WINDEVWEBDEV - Server code wd230hf.dll
Windows Mobile wp230hf.dll
Java wd230java.jar
Linux wd230hf.so
Android wd230android.jar
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment