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.
It is sorta covered in the
JavaRanch Style Guide
subject: how to check whether a connection is exited?
exit of an object
how to maintain database using Threads
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-2014