The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


How to detect when a client socket has closed?

Posted by Gavin Kingsley on August 13, 2000 at 5:59 PM

I am writing an application that can accept() client Sockets from a ServerSocket. How can I tell when my remote client has terminated the Socket connection? At the moment I am timing out on inactivity, but I would prefer to implement some form of EventListener.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us