Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WWIPStuff stalling
Message
 
To
30/07/1999 00:03:40
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00246980
Message ID:
00248050
Views:
17
>>>Thanks for all the advice, everyone.
>>>
>>>Ed, I picked up the suggestion of trying to connect with a known IP address from the West Wind site, and thought I might use the GetIPFromDomain() function. It gave the correct answer (from cached data?) after I went off line in the middle of an email session. It may work for testing when I start sending, though. I'll check the earlier thread for more info.
>>>
>>
>>
>>Here's what I do . . .
>>
>>set classlib to wwipstuff addi
>>o = create('wwipstuff')
>>lcip=''
>>* check to see if you can access the web server
>>lcip= o.GetIpFromDomain("www.Yourdomain.com")
>>if len(lcip)<12
>> messagebox('Not Connected to the Internet'+crlf+' or the Web Server is experiencing problems. . . Check Connection!')
>> return
>>endif
>>
>>Works like a charm for me.
>
>This looks good, but before I adapt it, I would like to be confident that there are no circumstances where an OS or a router would cache a DNS listing... seems like a good candidate for a network timesaver (in a bad way) to me...

Actually, I haven't run this code on the server. I use it in client pcs that are doing ftp uploads and it hasn't failed yet(I know I shouldn't have said that!)< G > I guess you could always run a nbtstat -R to clear that cache, then run the above code.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform