qq_不知道叫什么好_0
2015-02-04 18:59
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at Client.main(Client.java:25)
第25行的错误是这个:
while((info=br.readLine())!=null){
System.out.println("服务器来说:"+info);
}
是否建立了Socket连接?
Java Socket应用---通信是这样练成的
125013 学习 · 590 问题
相似问题