Help on Socket and URLConnection



Hi all,
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

.