🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15785

Re: howto detect internet connection?

#15785
From: Alvise Valsecchi
Date: Thu, 12 Jun 2003 06:50
31 lines
2367 bytes
Nick B. Cassos wrote:
> A question as old as life itself and one of the most frequent. No
> single function can tell if you are connected to the internet reliably
> or without side-effects such as automatic connections (depending on
> end-user's machine settings). The problem gets aglier if you wish to
> support all Windows versions. 

There are not better words than yours to describe the problem. And 
exactly for these reasons a couple of years ago I decided to bypass the 
problem and just send an idiot message to the end user.

I distributed my application and the end users are happy. Furthermore I 
did the following: at installation time, just the first time the app is 
executed, the end user must tell whether his/her connection to the 
Internet is permanent (like ADSL) or dialup. In the first case the 
message ("Please connect to the Internet...") is no longer sent.

You can read the source at:

http://www.hochfeiler.it/alvise/smtpcode.txt

and the story at:

http://www.hochfeiler.it/alvise/smtp.htm

and don't forget to read my web pages for the programmers (there are no 
banners, no ads, nor things to buy, only BC++B and asm code) at:

http://www.hochfeiler.it/alvise

Regards from Alvise.
Technical Details
Message-ID: <3ee8238b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ee7105b$1@newsgroups.borland.com> <cvneevce8jkcuaaehl46ortmkkdbsjmrso@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e5344293a067ae40
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-12 00:01:27 PST
Date: Thu, 12 Jun 2003 08:50:53 +0200
From: Alvise Valsecchi <alvise@hochfeiler.it>
User-Agent: Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.3.1) Gecko/20030425
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: howto detect internet connection?
References: <3ee7105b$1@newsgroups.borland.com> <cvneevce8jkcuaaehl46ortmkkdbsjmrso@4ax.com>
In-Reply-To: <cvneevce8jkcuaaehl46ortmkkdbsjmrso@4ax.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 195.110.148.66
Message-ID: <3ee8238b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1055400843 195.110.148.66 (11 Jun 2003 23:54:03 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail