Re: Help on Socket and URLConnection
- From: "hiwa" <HGA03630@xxxxxxxxxxx>
- Date: 26 Sep 2006 23:42:13 -0700
Mudit Khetan wrote:
Hi all,Generally or usually, if you use URLConnection, a higer level of remote
I am trying to make some tutorial assignmemnts and example programs for
my classes. I'm trying to use the 'Socket' and 'URLConnection' classes.
I am wondering if I can set a timeOut and catch the exception when the
connection times out. I'am implementing a simple webserver for which i
need this facility.
Thanks
connection abstraction than Socket, you won't need Socket for your
application. URLConnection class has setReadTimeout() method for which
read operation would throw java.net.SocketTimeoutException when the
timeout expired.
.
- References:
- Help on Socket and URLConnection
- From: Mudit Khetan
- Help on Socket and URLConnection
- Prev by Date: Re: Java Unix Shell "Simulator"
- Next by Date: Re: Java Unix Shell "Simulator"
- Previous by thread: Help on Socket and URLConnection
- Index(es):