Testing internet connection

This forum is for general support of Xbase++
Message
Author
Piotr D
Posts: 129
Joined: Mon Jul 28, 2014 1:26 am
Location: Poznań, Poland

Re: Testing internet connection

#11 Post by Piotr D »

Hi Pedro,
thanks for your contribution.
Regards
Piotr

User avatar
pedroah
Posts: 28
Joined: Wed Nov 05, 2014 7:15 pm
Location: Dominican Republic
Contact:

Re: Testing internet connection

#12 Post by pedroah »

Always, Your Welcome

Piotr D
Posts: 129
Joined: Mon Jul 28, 2014 1:26 am
Location: Poznań, Poland

Re: Testing internet connection

#13 Post by Piotr D »

Pedro,
maybe I make some wrong, but the DLL function InternetGetConnectedState() return 1 when computer is connected via router into internet and return the same when computer is not connected into router (and don't have onnection with internet). Why?

Piotr

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: Testing internet connection

#14 Post by Auge_Ohr »

Piotr D wrote:maybe I make some wrong, but the DLL function InternetGetConnectedState() return 1 when computer is connected via router into internet and return the same when computer is not connected into router (and don't have onnection with internet). Why?
you have to wait 30Sec.
greetings by OHR
Jimmy

Piotr D
Posts: 129
Joined: Mon Jul 28, 2014 1:26 am
Location: Poznań, Poland

Re: Testing internet connection

#15 Post by Piotr D »

Jimmy,
what are you meant? Don't understand. :(

Piotr

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: Testing internet connection

#16 Post by Auge_Ohr »

Piotr D wrote:what are you meant? Don't understand. :(
i did test it with a USB WiFi Stick.
after "eject" USB the Function still show "Y". so i wrote a loop and after 30 Sec. it show "N"

IMHO the Function only show if you have a connection to Internet but it does not say that you can connect to a Website.
greetings by OHR
Jimmy

Post Reply