I've a dial up connection on my Linux machine as well as Ethernet connection. I can connect to the Internet using either the dial-up or through the Ethernet via proxy-server.
In case of dial-up connectivity,one of my Java program just hangs when my dial-up line goes down and doesn't wake up when the line comes-up. It doesn't throw any exception so that I can catch that line is down and act accordingly.
This is not the case with connectivity through Ethernet. If I stop network while the program is running , it immediately throws exception .."host not found " (that's what I want) and whenever I start the network , it immediately resumes.
Why can't dial-up scenario work the same way ? Can anybody put light on this?
regards,
..sharmila