文件名称:SocketServer:java多线程套接字服务器,基于BIO
文件大小:56KB
文件格式:ZIP
更新时间:2024-07-22 08:31:16
Java
套接字服务器 Java多线程套接字服务器,基于BIO 用法: 扩展抽象类“ServerHandler”,实现方法“process(request)”: 公共类 MyServerHandler 扩展了 ServerHandler { Logger logger=ServerLoggerFactory.getLogger(MyServerHandler.class); @Override public void process(Request request) { Socket requestSocket=request.getRequestSocket(); //... } } If needed,there are interceptors you can assign before handler is invoked: public class
【文件预览】:
SocketServer-master
----bin()
--------xiaoyang()
----src()
--------xiaoyang()
----.project(388B)
----.classpath(232B)
----README.md(2KB)