socket服務端處理多個客戶端的請求學習理解

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.ge
相關文章
相關標籤/搜索