Time between client inputs in socket communication
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)
精彩评论