I too follow the same procedure with this variation:

if the socket connects I close the socket and return true, while if I get a 103 
error I return false.
And the socket is an object dragged in the window.

But I was thinking whether it would not be better pinging a site.

Does anybody have  the necessary code to ping a site?

Thanks,

>Sub ConnectionAvailable()As String
>
>     dim http as new HTTPSocket
>       http.yield = true
>       dim temp as String = http.get("http://www.yoursite.com";, 5)
>        if len(temp) > 0 then
>              return temp
>        else
>             // No connection
>      end if


-- 
Carlo
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to