- <font color="#ff0000">//客户端发送一个MP3文件</font>
复制代码- <font color="#ff0000">//服务器接收数据</font>
复制代码- <font color="#ff0000">Exception in thread "main" </font><font color="#000000">java.net.SocketException</font><font color="#ff0000">: Connection reset by peer: socket write error
- at java.net.SocketOutputStream.socketWrite0(</font><font color="#000000">Native Method</font><font color="#ff0000">)
- at java.net.SocketOutputStream.socketWrite(</font><font color="#000000">SocketOutputStream.java:109</font><font color="#ff0000">)
- at java.net.SocketOutputStream.write(</font><font color="#000000">SocketOutputStream.java:153</font><font color="#ff0000">)
- at test.ThreadSocket.main(</font><font color="#000000">ThreadSocket.java:13</font><font color="#ff0000">)
- </font>
复制代码 为啥一运行就会出异常呢?这是哪里出问题了呢?求大神指点指点!
|