应用广播
发送标准广播的三步骤
发送标准广播:
//发送标准广播
Intent intent new Intent("com.dongnaoedu.chapter09.standard");
sendBroadcast(intent); 定义广播接受者:
public class StanderdReceiver extends BroadcastReceiver {
public s…
1、先构建基本的netty框架
再下面的代码中我构建了一个最基本的netty实现websocket的框架,其他个性化部分再自行添加。
Slf4j
public class TeacherServer {public void teacherStart(int port) throws InterruptedException {NioEventLoopGroup boss new NioEve…
本文为CentOS7.9下安装Python3.11.2环境的Dockerfile
# CentOS with Python3.11.2
# Author xxmail.com# build a new image with basic centos
FROM centos:centos7.9.2009
# who is the author
MAINTAINER xxmail.comRUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/…