S
Steve.
I'm a C++ programmer trying to get up to speed in Java and possibly
save my career. ;-) I'm doing some socket programming, basically a
java client on a windows machine talking to a C++ server on a Solaris
machine. I managed to kludge things around and get them talking to
each other using DataInputStream and DataOutputStream. The thing I
can't figure out now is how to get the Java client to recognize when
the server connection ends. I tried catching IOException, but that
doesn't seem to help. Also I tried calling and checking
getRemoteServerAddress before accessing the Socket.
Any ideas of a good way to sense a connection loss?
save my career. ;-) I'm doing some socket programming, basically a
java client on a windows machine talking to a C++ server on a Solaris
machine. I managed to kludge things around and get them talking to
each other using DataInputStream and DataOutputStream. The thing I
can't figure out now is how to get the Java client to recognize when
the server connection ends. I tried catching IOException, but that
doesn't seem to help. Also I tried calling and checking
getRemoteServerAddress before accessing the Socket.
Any ideas of a good way to sense a connection loss?