public class MyServer {
public static void main(String[] args) throws IOException {
//创建服务器监听端口号
ServerSocket ss = new ServerSocket(10000);
//获取客户端连接对象
while (true){
Socket s=ss.accept();
//创建多个线程
new Thread
tcp模拟服务器处理http请求
最新推荐文章于 2024-05-17 03:18:47 发布