Article View: borland.public.cppbuilder.internet.socket
Article #1705Re: How to check, if my LAN-connection is currently available or not?
From: Erol Fornoles
Date: Thu, 23 Nov 2006 16:24
Date: Thu, 23 Nov 2006 16:24
27 lines
2295 bytes
2295 bytes
Trying doing a UDP broadcast. If it throws an exception, you're not connected to the LAN. - Erol On Nov 24, 12:03 am, <MR> wrote: > Hans Galema <notu...@notused.nl> schrieb: > > >MR wrote: > >> How to check, if my connection is currently available or not? > > >Do you mean your connection to the internet?Yes, but I would appreciate the same when e.g. copying a file from one > computer to another using my TCP/IP connection (LAN). > > >You can use TIDHttp to connect to a server on the internet. > > >If that succeeds: connection.The problem is more, to check the reason why a download does not > succeed. Is the file not available or did I loose my connection. > > Perhaps I should add, my Laptop has some difficuly to hold the > Ethernet-cable so it sometimes slips out. So if it does I could handle > this quickly with e.g. an alarming sound, forcing me to plug it in > immediately... ;-) > > Thanks, > > Michael
Technical Details
Message-ID:
<1164299076.497156.98630@j44g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!j44g2000cwa.googlegroups.com!not-for-mailReferences:
<4bpam21rfr9noj29g2ol5jp008gekpvuf8@4ax.com> <45657d06$1@newsgroups.borland.com> <c0hbm21kmuro6k0aa029usf5o2hhhgo21c@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,905341194f734f35 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!j44g2000cwa.googlegroups.com!not-for-mail From: "Erol Fornoles" <erol.fornoles@gmail.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: How to check, if my LAN-connection is currently available or not? Date: 23 Nov 2006 08:24:36 -0800 Organization: http://groups.google.com Lines: 28 Message-ID: <1164299076.497156.98630@j44g2000cwa.googlegroups.com> References: <4bpam21rfr9noj29g2ol5jp008gekpvuf8@4ax.com> <45657d06$1@newsgroups.borland.com> <c0hbm21kmuro6k0aa029usf5o2hhhgo21c@4ax.com> NNTP-Posting-Host: 124.104.4.81 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1164299081 7257 127.0.0.1 (23 Nov 2006 16:24:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 23 Nov 2006 16:24:41 +0000 (UTC) In-Reply-To: <c0hbm21kmuro6k0aa029usf5o2hhhgo21c@4ax.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: j44g2000cwa.googlegroups.com; posting-host=124.104.4.81; posting-account=eSwwBg0AAABefeuJ5pOS_k670Rlobybv