wifi 热点是android 常用的一种功能,那么如何获取连接热点的设备数量? 网上查阅了一下资料,基本都是通过/proc/net/arp 设备文件去获取相关信息,包括ip mac 以及连接状态。 文件内容如下: IP address HW type Flags HW address Mask D ...
分类:
移动开发 时间:
2020-05-11 10:33:47
阅读次数:
259
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes ...
分类:
其他好文 时间:
2020-05-11 01:23:35
阅读次数:
61
Abstract: Why you need to learn some ML knowledge at least. You know that ML has everwhere! When you are visiting though some e shop and click some go ...
分类:
其他好文 时间:
2020-05-11 00:39:46
阅读次数:
80
Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making ...
分类:
其他好文 时间:
2020-05-10 23:17:57
阅读次数:
64
一、概念 网络地址转换(Network Address Translation,NAT) 将私网地址和端口转换成公网地址和端口,让使用私网地址的网络设备可以访问互联网。 NAT的工作原理是通过解析IP报文头部,自动替换报文头中的源地址或目的地址,实现使用私网地址的用户可以通过私网地址访问互联网。私网 ...
分类:
其他好文 时间:
2020-05-10 23:04:41
阅读次数:
100
Given an undirected tree consisting of n vertices numbered from 0 to n-1, which has some apples in their vertices. You spend 1 second to walk over one ...
分类:
移动开发 时间:
2020-05-10 19:30:30
阅读次数:
71
#!/bin/bash user="root" #用变量来存储用户 DB="class" #数据库为class TB="student" #需要建立的表是student mysql -u$user <<EOF #前面实现了免密码登录,这里就不需要写密码了 drop database $DB; #如果 ...
分类:
数据库 时间:
2020-05-10 17:07:25
阅读次数:
85
1. SO_REUSEADDR(端口重用) 服务端主动断开连接以后,需要等 2 个 MSL 以后才最终释放这个连接,重启以后要绑定同一个端口,默认情况下,操作系统的实现都会阻止新的监听套接字绑定到这个端口上。 TCP 连接由四元组唯一确定。{local-ip-address:local-port , ...
分类:
其他好文 时间:
2020-05-10 16:55:22
阅读次数:
77
#全局开启mac地址漂移检测(默认开启) [Huawei]mac-address flapping detection #配置接口学习mac地址优先级,默认为0,越大越优先 [Huawei-GigabitEthernet0/0/1]mac-learning priority <0-3> #配置不允许 ...
分类:
系统相关 时间:
2020-05-10 15:08:42
阅读次数:
182
1. 在创建类的时候,如果参数过多,我们直接使用构建起创建方法的时候会不知道具体参数代表什么类型.比如: User user = new User("123","123","123","123","123"); 这样不知道具体的参数代表什么,不容易知道要创建什么类型的User,所以我们可以直接使用构 ...
分类:
其他好文 时间:
2020-05-10 15:06:21
阅读次数:
41