Java socket problems half closing

前端 未结 1 1565
自闭症患者
自闭症患者 2021-01-20 01:12

I\'m using JDK 1.3 (BD-J platform) using tcp sockets.

I seem to be getting some errors half closing on the client end. If I\'m done writing and close the lower socke

1条回答
  •  情歌与酒
    2021-01-20 01:20

    You need Socket.shutdownOutput. Closing either the InputStream or the OutputStream of a Socket closes the Socket (crazy, but true).

    0 讨论(0)
提交回复
热议问题