Hi guys! My serversocketchannel and socketChannels are NON-blocking! I don't know whether there is something I'm missing in java.nio package.I have implemented client -server program but my small problem is that when the client disconnects the server also dies.What do I need to close in order to prevent this(if there is any) on which side? Thanx for your in advance!!
Without seeing some code it's impossible to know. Off the top of my head, I'd say that you either don't have a loop to listen for clients or that you are getting an exception when the client closes and that kicks you out of your listen loop. Feel free to share small samples of relevant code so we can investigate further.