File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes regarding time outs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "regarding time outs" Watch "regarding time outs" New topic
Author

regarding time outs

Abhishek Dhama
Greenhorn

Joined: Nov 17, 2003
Posts: 12
Hi all,
This question might sound little strange, but then kindly bear with it.
I have this doubt regarding JDK1.1.8!!!
java.net package in JDK1.1.8 doesnt have SocketTimeoutException it has
only SocketException. So how to catch exception which is raised when
socket times out? There is one more exception listed in API
ProtocolException. Now what is the difference between the events which
raise these exception coz API says same thing about both
>>Thrown to indicate that there is an error in the underlying protocol,
such as a TCP error. <<
Also SocketTimeoutException is inherited from
java.io.InterruptedIOException, so will it be a good idea to catch
InterruptedIOException to signal timeout??
Thanking in advance
regds
Dhama
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding time outs