> Hi all,
> I am trying to make some tutorial assignmemnts and example programs for
[quoted text clipped - 3 lines]
> need this facility.
> Thanks
Generally or usually, if you use URLConnection, a higer level of remote
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.