开发者

Time between client inputs in socket communication

开发者 https://www.devze.com 2023-02-14 05:05 出处:网络
I have a simple socket server client communication in java where the clinet introduce a string and the s开发者_如何学Pythonerver return the number of spaces from that string. I want to finish the comm

I have a simple socket server client communication in java where the clinet introduce a string and the s开发者_如何学Pythonerver return the number of spaces from that string. I want to finish the communication if the client does'n introduce nothing for more than 10 seconds but i don't know how. Any idea please?


setSoTimeout(10000)

0

精彩评论

暂无评论...
验证码 换一张
取 消