问题描述
我已将ConnMan安装为网络管理员,并且能够连接到受保护的访问wifi网络(在public static void main(String... args) {
List<Student> students = Arrays.asList(
new Student('a',87.13),new Student('b',82.53),new Student('c',86.13),new Student('d',87.33));
Map<Character,Integer> ranks = ranks(students);
for (Student student : students)
System.out.format(Locale.ENGLISH,"student %s = %.2f %d\n",student.id,student.avg,ranks.get(student.id));
}
private static Map<Character,Integer> ranks(List<Student> students) {
Queue<Student> queue = new PriorityQueue<>(Student.soRT_BY_AVG_DESC);
queue.addAll(students);
int rank = 1;
Map<Character,Integer> map = new HashMap<>();
while (!queue.isEmpty())
map.put(queue.remove().id,rank++);
return map;
}
static class Student {
public static final Comparator<Student> SORT_BY_AVG_DESC =
Comparator.comparingDouble((TodoubleFunction<Student>)student -> student.avg).reversed();
private final char id;
private double avg;
public Student(char id,double avg) {
this.id = id;
this.avg = avg;
}
}
的输出中标识为student a = 87.13 2
student b = 82.53 4
student c = 86.13 3
student d = 87.33 1
服务)。
但是,我无法使用开放访问点(标识为wifi_..._managed_psk
服务)访问Internet:ConnMan连接到这些网络,但是我无法访问网站(connmanctl services
未接收数据)。
我遵循了the relevant Archwiki page上的说明,但是运行wifi_..._managed_none
之后,我仍然无法访问互联网(重试告诉我我已经连接了)。
我还尝试在ping
中为这些网络编写配置文件,但没有成功。
有什么想法吗?
我正在使用LXQt桌面环境运行Archlinux。我通常使用ConnMan图形应用程序连接到网络,这对于其他网络也可以正常工作。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)