Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #4501

Check Internet Connection - Here is a reliable method

From "Jamal" <vodotnet_nospam@yahoo.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Check Internet Connection - Here is a reliable method
Date 2012-12-20 11:51 -0500
Organization A noiseless patient Spider
Message-ID <kavflm$bje$1@dont-email.me> (permalink)

Show all headers | View raw


Hi All,

If you are looking for a reliable way to check Internet connection 
availability, use VO  cHttp class!  Check for a website that is hardly ever 
down.
Turn  on/off your internet connection and test. It works. Make sure the 
Internet class is included in your application.

FUNCTION IsInternetConnection() AS LOGIC PASCAL
    LOCAL oMyHttp := := CHttp{} AS cHttp
RETURN  ( SLen(oMyHttp:GetDocumentByURL("http://microsoft.com")) > 0 )


// Sample usage:

FUNCTION Start()

    InfoBox{, "", IIF(IsInternetConnection(), "Internet Up", "Internet 
Down")}:show()

RETURN NIL

Hope this helps!

Jamal Assaf 

Back to comp.lang.clipper.visual-objects | Previous | Next | Find similar | Unroll thread


Thread

Check Internet Connection - Here is a reliable method "Jamal" <vodotnet_nospam@yahoo.com> - 2012-12-20 11:51 -0500

csiph-web