QMConnectionType()

QMConnectionType()

Top  Previous  Next

 

The QMConnectionType() function sets parameters that affect the behaviour of QMClient.

 

The function takes a single argument, Type, which is a bit significant value that controls the session parameters.

 

Type can be formed from any of the following additive values:

1The next session to be opened will not take part in the device licensing system.
2The next session to be opened will not use encrypted data traffic. This may result in increased transfer speeds but at the expense of weakened security. Note that the login authentication data (user name and password) is always encrypted when both the client and the server support this, regardless of the setting of this parameter.
4The next session to be opened must use encrypted data traffic. If the server does not support encryption, the session will not be established.
8Suppress display of error messages from within the QMClient library. Once set, this mode persists even if a later call to QMConnectionType does not include this value. Applications must test the value returned by QMError() to determine if an error has occurred.
32All functions passing strings as 8-bit data use UTF-8 representation (C API only)        
64Enable IPV6 support.

 

Additional bit values may be used in future releases or for internal undocumented purposes.

 

The examples below use the QMConnectionType() function to disable network traffic encryption before attempting to connect to the server.

 

 

hmtoggle_plus1C

 

hmtoggle_plus1VB.Net

 

hmtoggle_plus1QMBasic Class Module

 

hmtoggle_plus1Java

 

hmtoggle_plus1Python