get_connection_parameters

get_connection_parameters(); - get parmeters connected to the Internet

After testing, the function returns the result of its work to the script :

Connection parameters – properties of connecting to the Internet as a string with flags :

    INTERNET_CONNECTION_CONFIGURED – the system has a correctly configured connection to the net, but not the fact that it is currently connected to it
    internet_connection_lan – uses a LAN for Internet connection
    INTERNET_CONNECTION_MODEM – uses the modem for Internet connection
    INTERNET_CONNECTION_MODEM_BUSY – the modem is busy
    INTERNET_CONNECTION_OFFLINE – now in offline mode
    INTERNET_CONNECTION_PROXY – uses a proxy server to connect to the Internet

PHP example: connection->".basename(__FILE__)."
"; //1 echo "1.Get the connection parameters:"; echo $connection->get_connection_parameters(); //end echo "

"; //Quit $app->quit(); ?>
Python example: # Additional paths import sys sys.path.insert(0, '../../../Templates PY/') xhe_host = "127.0.0.1:7010" from xweb_human_emulator import * # Start echo("
connection.xxxxxxxxx
") # 1 echo("1.Get the connection parameters:") echo(connection.get_connection_parameters()) # end echo("

") # Quit app.quit()
C# example: #region using using System; using System.Diagnostics; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading; using XHE; using XHE.XHE_DOM; using XHE.XHE_System; using XHE.XHE_Window; using XHE.XHE_Web; #endregion class Program: XHEScript { static void Main(string [] args) { //init XHE server = "127.0.0.1:7010"; InitXHE(); //Start echo("
connection.get_connection_parameters
"); //1 step echo("1.Get the connection parameters:"); echo(connection.get_connection_parameters()); //end echo("

"); app.quit(); } }
Java Script example: //connect the object to control the emulator, if not already connected xhe_host = "127.0.0.1:7010"; echo = require("../../../Templates JS/xweb_human_emulator.js"); //Start echo("
connection.get_connection_parameters
"); //1 step echo("1.Get the connection parameters:"); echo(connection.get_connection_parameters()); //end echo("

"); //Quit app.quit();