A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
Sockets and Internet Protocols
how to check whether a connection is exited?
Joined: Jan 26, 2013
Feb 23, 2013 02:13:49
how to check whether a connection is exited? (socket)
Author and all-around good cowpoke
Joined: Mar 22, 2000
Feb 23, 2013 07:13:24
Assuming you mean when the other side of your connection has closed the socket.
For one thing, you will get an
when you try to write to it or read from it.
In general, see the
JavaDocs for methods to check state of a socket.
Java Resources at
Don't get me started about those stupid
subject: how to check whether a connection is exited?
how to maintain database using Threads
HTTPS Cipher Threshold
exit of an object
problem in connectivity through datasource to oracle database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014