zoukankan      html  css  js  c++  java
  • Android4.4版本源码变化

    一,WifiManager

      新增:

     1 public void setTdlsEnabled (InetAddress remoteIPAddress, boolean enable)
     2     
     3 Enable/Disable TDLS on a specific local route.
     4 
     5 TDLS enables two wireless endpoints to talk to each other directly without going through the access point that is managing the local network. It saves bandwidth and improves quality of the link.
     6 
     7 This API enables/disables the option of using TDLS. If enabled, the underlying hardware is free to use TDLS or a hop through the access point. If disabled, existing TDLS session is torn down and hardware is restricted to use access point for transferring wireless packets. Default value for all routes is 'disabled', meaning restricted to use access point for transferring packets.
     8 
     9 Parameters
    10 remoteIPAddress    IP address of the endpoint to setup TDLS with
    11 enable    true = setup and false = tear down TDLS
    public void setTdlsEnabledWithMacAddress (String remoteMacAddress, boolean enable)
    
    Similar to setTdlsEnabled(InetAddress, boolean), except this version allows you to specify remote endpoint with a MAC address.
    
    Parameters
    remoteMacAddress    MAC address of the remote endpoint such as 00:00:0c:9f:f2:ab
    enable    true = setup and false = tear down TDLS

      变更:

    public DhcpInfo getDhcpInfo ()
    
    Return the DHCP-assigned addresses from the last successful DHCP request, if any.
    
    Returns
    the DHCP information
    
    /*Change from deprecated to undeprecated.*/

    TDLS简介

    日前WiFi联盟推出了名为TDLS(Tunneled Direct Link Setup,通道直接链路建立)的无线标准,这项标准允许两款设备通过WiFi网络进行点对点直连,与早起提倡的WiFi Direct相似,不过功能则更加完善。

    前后版源码版本差异查看:frameworksasedocshtmlsdkapi_diff19changes

     转载请注明出处:http://www.cnblogs.com/Miami/p/4380381.html

  • 相关阅读:
    华为牛人在华为工作十年的感悟!(有点长)(转载)
    C# 10进制与16进制相互转换
    Linux必学的60个命令
    项目管理
    网络数据加密需要解决三个问题:
    DES加密/解密的应用
    一个比较牛的加密算法
    开发完成后总结心得(团队会议稿) (转载)
    相当于序列化与反序列化,但是不用借助外部文件
    软件开发设计常识
  • 原文地址:https://www.cnblogs.com/Miami/p/4380381.html
Copyright © 2011-2022 走看看