我将此代码放入服务中:
InputStream readeIn = socket.getInputStream();
char [] buffer = new char[1024];
BufferedReader in = new BufferedReader(new InputStreamReader(readeIn));
while((counter = in.read(buffer)) != -1)
{
socket.setSoTimeout(300000);
//read here
}
我会问你两个问题:
感谢您的回答。