标签:
socket服务端处理多个客户端的请求:
while(true){
Socket s=ss.accept();
new WorkThread(s).start();
}
class WorkThread edtends Thread{
private Socket s;
public WorkThread(Socket s){
this.s=s;
}
public void run(){
s.getInput();
s.getOutput();
}
}
标签:
原文地址:http://www.cnblogs.com/gentspy/p/5248026.html