Is it possible to see if a client is trying to connect a ServerSocket?

前端 未结 0 659
暖寄归人
暖寄归人 2021-02-12 10:39

I have this loop running in a thread:

ServerSocket ss = new ServerSocket(PORT);
while (running) {
    ClientHandler ch = new ClientHandler(ss.accept);
}


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题