如題
我照書上範例使用javax.sound.sampled.TargetDataLine取得電腦的麥克風音訊
接著利用ServerSocket和Socket做出Server與Client
Server端擷取麥克風傳輸給Client端播放
程式碼(Server):
https://github.com/a0tim/AudioSocket/blob/master/Server.java
程式碼(Client):
https://github.com/a0tim/AudioSocket/blob/master/Client.java
執行時出現錯誤:java.net.SocketException: Connection reset by peer:
socket write error
請問是有哪部分程式有邏輯錯誤嗎?感謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.192.185.163