Getting the type of connection

You can get the connection type of the device using the getType() function.

Method summary

 

getType()

  • returns – Number
  • params
    • None

For instance,

<cfset conType = cfclient.connection.getType()>

The connection types returned by these functions will be one of the following constants:

  • cfclient.connection.UNKNOWN 
  • cfclient.connection.ETHERNET
  • cfclient.connection.WIFI
  • cfclient.connection.CELL_2G
  • cfclient.connection.CELL_3G
  • cfclient.connection.CELL_4G
  • cfclient.connection.NONE

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy