服务端处理请求线程:public class Serv
服务端:public class UDPServer { public static
开线程处理客户端连接:public class ServerThread extends Thread { private Socket socket=n
server端:public class Server { public static void main(Stri
public class Test01 { public static void main(String[] args) throws UnknownHostExcepti
public class Test02 { public static void main(String[] args){ try { //创建一个
服务器处理用户连接线程类:public class ServerThread extend
服务器端处理客户请求:public class ServerThread extends Thread { private Socket socket=null; public ServerThread(Socket socket){ this.socket=socket; } @Override public void run()
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号