• Post Reply Bookmark Topic Watch Topic
  • New Topic

My client server application is showing connection reset?  RSS feed

 
Parshant Sehrawat
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my ChatServer class




Here is my ChatClient class




code is throwing many exception while reading a file or multiply things.
Can any one help me regarding this?
 
Sucheta Shrivastava
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why have you included a try catch at line : 39 to 43

  try
            {
            streamOut.writeInt(choice);
            }
            catch(Exception e){System.out.println("not able to write");}

what does it do
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!