Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EOFException in DataInputStream  RSS feed

 
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???
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!