• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client socket closing.

 
Mohan raj gaddam
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi


When the server disconnects the client, then i have to close the client socket, its giving socketexception but the socket is not closing.How can i do that.. in the socketexception i gave system.out.println.. its keep on displaying. How do i close it once the server disconnects the client.
Client has a thread in which i am reading the data from the server, in the run method i am catching the socketException but not able to close the socket.

Regards,
Mohan raj
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic