Hello!
I am trying to get some data from the DSL router (aka FreeBox) my Mac
is connected to, and gets hung when the router is off.
This router can send video channels to the mac and to prepare this, I
first ask for the "playlist" at this address :
mafreebox.freebox.fr/freeboxtv/playlist.m3u
So I create a button and put the following in its action event :
Dim TTT as New HTTPSocket
dim vrac as String
TTT.yield = true
vrac = TTT.Get("mafreebox.freebox.fr/freeboxtv/playlist.m3u",1)
// then use vrac string, no trouble here...
When the DSL router is powered and running, I get the string and can
proceed. But when it does not respond, the app hangs for much more
than the 1 second timeout specified.
What should I put in my code to handle correctly this situation (not
slow the app and inform user the connexion is off) ?
Thank you!
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>