• Post Reply Bookmark Topic Watch Topic
  • New Topic

EOFException in DataInputStream

 
Jay Kwon
Greenhorn
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 out....so 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!