« Plugins 10.1 | Home | MBS SQLite Extension … »

NetworkAvailableMBS


Today I removed NetworkAvailableMBS. It was not working right and basicly it's not useful.
if you want to check whether you have a network, than do a DNS resolve:

// two independend domain names
const domain1 = "www.google.com"
const domain2 = "www.macsw.de"

// resolve IPs
dim ip1 as string = DNSNameToAddressMBS(Domain1)
dim ip2 as string = DNSNameToAddressMBS(Domain2)

// if we got IPs and not the same IPs (error/login pages)
if len(ip1)=0 or len(ip2)=0 or ip1=ip2 then
MsgBox "no connection"
else
MsgBox "have connection"
end if

This way you can detect whether you got something from DNS. And you can make sure that a DNS redirection to a login page won't catch you.
04 03 10 - 16:19
two comments

This should be added to the Network plugin docs. Searching the MBS Documentation does not return anything for NetworkAvailableMBS and I had to use an external Google search to locate this note.
Tim Jones (Email) - 16 07 10 - 19:50

I will add it to the FAQ with the next documentation update.
Christian Schmitz - 16 07 10 - 21:38


  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.