Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EOFException in DataInputStream  RSS feed

Jay Kwon
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I made Client/Server program. The structure of my code is like below...
First, client sends request to the server...
Second, server receives the request and check the server status for the request.
Third, server sends reply to the client
Fourth, client receives the reply from the client.
so on....
The problem is in fourth step. In the third step, server just use writeInt(code) and client use readInt()....
Sometimes, client's code,'readInt()' throws EOFException. This is when multiple clients request server. I cannot figure this anyone can help me???
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!