PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • How to use HConnectionQuality?
  • Quality level of connection
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
HConnectionQuality (Function)
In french: HQualitéConnexion
HFSQL Client/ServerAvailable only with this kind of connection
Returns the quality level of connection: the higher the level is, the faster the connection will be. Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 23 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 23
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Example
// Teste la qualité de la connexion
// Connexion1 est une connexion avec compression
// Connexion2 est une connexion sans compression
Résultat1 is int = HConnectionQuality(Connexion1)
Résultat2 is int = HConnectionQuality(Connexion2)
IF Résultat1 > Résultat2 THEN
Trace("La meilleure connexion est Connexion1")
ELSE
Trace("La meilleure connexion est Connexion2")
END
Syntax
<Result> = HConnectionQuality(<Connection>)
<Result>: Integer
Quality level of connection. The higher the level is, the faster the connection will be.
<Connection>: Character string or Connection variable
Connection to test. This connection corresponds to:
Remarks

How to use HConnectionQuality?

The HConnectionQuality function is to be used in the context of frame compression.
When should I compress the network frames?
The choice must be based on 3 parameters:
  • the speed of the network used,
  • the CPU performance of the client computers
  • the type of the transmitted data.
The importance of each parameter depends on the two other ones so no standard formula is available. However, you will find some tips that help you make this choice:
  • If the speed of the network used is greater than 10 Mbits/second, there is no need to compress the frames.
  • If the network used (GRPS, EDGE or 3G type) is invoiced according to the amount of transmitted data, we advise you to compress the frames in order to reduce the cost.
  • If an important amount of data (binary memo) is transmitted (images, video, zip sound, etc.), the compression of frames will be useless.
  • In all the other cases:
    • on client computers equipped with high-performance processors and if text or text memo data is used by your application, it may be interesting to compress the frames.
    • on client computers equipped with low-performance processors, it may be very interesting to compress the frames if the transfer rate is quite slow.
    It may be interesting to perform comparative measurements by using the performance analyzer.
The HConnectionQuality function can be used as a last resort to compare the performance of a compressed connection with that of an uncompressed connection.

Quality level of connection

The quality level of the connection depends on several parameters, for example:
  • The CPU workload of the client and server.
  • The use of the network resource by other programs.
  • The workload on the network devices (switch, router, ...).
Component: wd270hf.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment