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

Client socket closing.  RSS feed

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

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.

Mohan raj
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!