Continuously read objects from an ObjectInputStream in Java

后端 未结 4 1536
时光说笑
时光说笑 2020-12-12 04:48

I have a problem using an ObjectInputStream and I have been struggling with it for 2 days now. I tried to search for a solution but unfortunately found no fitting answer.

4条回答
  •  情歌与酒
    2020-12-12 05:18

    Very late answer, but just for future reference. I have been having problems sending Objects via sockets because the method flush() is not working properly.

    I solved this problem just by switching flush() to reset().

提交回复
热议问题