Detect Internet connection

Started by
0 comments, last by baskuenen 23 years, 7 months ago
How can I detect if I''m connected to the internet? I could do a gethostbyname("www.gamedev.net") but this too crude for me. I have a modem, and I don''t want that Dialup dialog on my screen. If you have any clue, please help...
Advertisement
After searching for more info on the net, and visiting some talkers , I''ve come to the conclusion I have to check for 127.0.0.1

If I use gethostbyaddr(127.0.0.1) and don''t find it, I should be connected to the inet. Is this right?

Wwhat technique should I use when I''m connected to another network?

This topic is closed to new replies.

Advertisement