Hi. I've written an applet that contacts a remote server for information using ftp. Sometimes that server doesn't respond which will make my applet hang up. Only closing the browser down can stop it.
Is there a way that I can time the server response and if nothing happens after say 60 secs then the applet stops waiting for the server. Would I need 2 threads for this. One to act as a timer and the other to contact the server and when the timer thread deems it necessary it will then stop the connection thread. Does that make sense?
Many thanks in advance. ASCII silly question, get a silly ANSI
Is there a way that I can time the server response and if nothing happens after say 60 secs then the applet stops waiting for the server. Would I need 2 threads for this. One to act as a timer and the other to contact the server and when the timer thread deems it necessary it will then stop the connection thread. Does that make sense?
Many thanks in advance. ASCII silly question, get a silly ANSI