Net_Wifi
[ class tree: Net_Wifi ] [ index: Net_Wifi ] [ all elements ]

Source for file Config.php

Documentation is available at Config.php

  1. <?php
  2.  
  3. /**
  4. *   Configuration settings of a wifi network interface.
  5. *
  6. *   @author Christian Weiske <cweiske@php.net>
  7. */
  8. class Net_Wifi_Config
  9. {
  10.     /**
  11.     *   If the interface is activated.
  12.     *   Some notebooks have a button which deactivates wifi, this is recognized here.
  13.     *   Note that this setting can't be read by all drivers, and so
  14.     *    it's "true" if it can't be determined. You can be sure that it's deactivated
  15.     *    if this setting is false, but not that it's activated if it's true
  16.     *   @var boolean 
  17.     */
  18.     var $activated  = true;
  19.  
  20.     /**
  21.     *   MAC address of the associated access point.
  22.     *   @var string 
  23.     */
  24.     var $ap         = null;
  25.  
  26.     /**
  27.     *   If the interface is connected to an access point or an ad-hoc network.
  28.     *   @var boolean 
  29.     */
  30.     var $associated = false;
  31.  
  32.     /**
  33.     *   Network type.
  34.     *   Can be "master" or "ad-hoc" (without quotes)
  35.     *   @var string 
  36.     */
  37.     var $mode       = null;
  38.  
  39.     /**
  40.     *   The nickname which the interface (computer) uses.
  41.     *   Something like a computer name
  42.     *   @var string 
  43.     */
  44.     var $nick       = null;
  45.  
  46.     /**
  47.     *   Noise level in dBm - how much the signal is disturbed
  48.     *   example: -249
  49.     *   @var int 
  50.     */
  51.     var $noise      = null;
  52.  
  53.     /**
  54.     *   Other packets lost in relation with specific wireless operations.
  55.     *   @var int 
  56.     */
  57.     var $packages_invalid_misc = 0;
  58.  
  59.     /**
  60.     *   Number of periodic beacons from the Cell or the Access Point we have
  61.     *   missed. Beacons are sent at regular intervals to maintain the cell
  62.     *   coordination, failure to receive them usually indicates that the card
  63.     *   is out of range.
  64.     *   @var int 
  65.     */
  66.     var $packages_missed_beacon = 0;
  67.  
  68.     /**
  69.     *   Number of packets that the hardware was unable to decrypt.
  70.     *   This can be used to detect invalid encryption
  71.     *   settings.
  72.     *   @var int 
  73.     */
  74.     var $packages_rx_invalid_crypt = null;
  75.  
  76.     /**
  77.     *   Number of packets for which the hardware was not able to properly
  78.     *   re-assemble the link layer fragments (most likely
  79.     *   one was missing).
  80.     *   @var int 
  81.     */
  82.     var $packages_rx_invalid_frag = null;
  83.  
  84.     /**
  85.     *   Number of packets received with a different NWID or ESSID.
  86.     *   Used to detect configuration problems or adjacent
  87.     *   network existence (on the same frequency).
  88.     *   @var int 
  89.     */
  90.     var $packages_rx_invalid_nwid = null;
  91.  
  92.     /**
  93.     *   Number of packages that needed to be re-submitted repeatedly again
  94.     *   and again, because no ACK was received for them.
  95.     *   You have a bad connection or are connecting long distance.
  96.     *   @var int 
  97.     */
  98.     var $packages_tx_excessive_retries = null;
  99.  
  100.     /**
  101.     *   Power setting of the interface.
  102.     *   @var int 
  103.     */
  104.     var $power      = null;
  105.  
  106.     /**
  107.     *   Protocol version which is used for connection.
  108.     *   example: "IEEE 802.11g" without quotes
  109.     *   @var string 
  110.     */
  111.     var $protocol   = null;
  112.  
  113.     /**
  114.     *   The bit rate of the connection.
  115.     *   @var float 
  116.     */
  117.     var $rate       = null;
  118.  
  119.     /**
  120.     *   Signal strength in dBm.
  121.     *   example: -59
  122.     *   @var int 
  123.     */
  124.     var $rssi       = null;
  125.  
  126.     /**
  127.     *   "Service Set IDentifier" of the cell which identifies current network.
  128.     *   Max. 32 alphanumeric characters
  129.     *   example: "My Network" (without quotes)
  130.     *   @var string 
  131.     */
  132.     var $ssid       = null;
  133.  
  134. }//class Net_Wifi_Config
  135. ?>

Documentation generated on Mon, 11 Mar 2019 15:05:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.