A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
It is sorta covered in the
JavaRanch Style Guide
subject: how to check whether a connection is exited?
how to maintain database using Threads
exit of an object
HTTPS Cipher Threshold
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-2013