古法金
Can I set a timeout for a InputStream's read() function?
I have a DataInputStream that I obtained from a Socket. Is there any way I can set a timeout for dis.read(...)? Currently I spawn a new thread to do the read. While the parent thread does a thread.joi[详细]
2022-12-27 01:50 分类:问答