xsocket客户端向socket服务器发送数据
现在的问题是socket向xscoket端发送没问题,但是xcoket向socket发送就报错了,报错信息java.net.SocketException:Connect...
现在的问题是socket向xscoket端发送没问题,但是xcoket向socket发送就报错了,报错信息
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at com.whty.datacheck.socket.TalkServer.server(TalkServer.java:34)
at com.whty.datacheck.socket.TalkServer.main(TalkServer.java:54)
这是服务端的报错信息,客户端无错误 展开
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at com.whty.datacheck.socket.TalkServer.server(TalkServer.java:34)
at com.whty.datacheck.socket.TalkServer.main(TalkServer.java:54)
这是服务端的报错信息,客户端无错误 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询