realbasic-nug
[Top] [All Lists]

Re: Socket that doesn't lock up when Internet connection is down?

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Socket that doesn't lock up when Internet connection is down?
From: Michael Diehr <md03@xochi.com>
Date: Mon, 29 Jun 2009 19:36:35 -0700
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <fed2e2560906291915l781ce993r8f4845c277426d25@mail.gmail.com>
References: <fed2e2560906271929i1652ef0er8785ef1a5178fd8e@mail.gmail.com> <563B7A44-1E04-4647-AA9A-21C3AB8B2D38@bainsware.com> <fed2e2560906272224jb7fdacby106dbec8f16a8759@mail.gmail.com> <C3D61FD9-93C0-4475-9543-129005597DC7@monkeybreadsoftware.de> <fed2e2560906280922x11a2d54dgcdeef6e48e98e36b@mail.gmail.com> <4a533bec0906290140m49f69e57q2151f4ed89692de0@mail.gmail.com> <fed2e2560906291915l781ce993r8f4845c277426d25@mail.gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
On Jun 29, 2009, at 7:15 PM, Dennis Birch wrote:

On Mon, Jun 29, 2009 at 1:40 AM, Carlos M<rblists@rbtips.com> wrote:

For Windows check the WFS InternetConnection module:
http://aaronballman.com/programming/REALbasic/Win32FunctionalitySuite.php

Thanks for the tip, Carlos. I put together a test project and ran it
in Windows 7 beta which is installed in VirtualBox on my iMac.

I get the exact same values for each of the following module tests
with the DSL modem plugged into the switch and removed from the
switch:

   dim offline As Boolean = InternetConnection.Offline
   dim configured As Boolean = InternetConnection.Configured
   dim lan As Boolean = InternetConnection.LAN
   dim noconnection As Boolean = InternetConnection.NoConnection
   dim modem As Boolean = InternetConnection.Modem
   dim busy As Boolean = InternetConnection.ModemBusy
   dim proxy As Boolean = InternetConnection.Proxy

Have I overlooked something, does it not work the same in a virtual
machine as in a real PC, is it Windows 7, or what?

It might depend on the virtualization. Under Parallels at least, you have a choice of two or 3 styles of networking -- one of which basically connects from the VM to the mac (in which case the mac is the "host" and therefore always on) -- another treats the VM as a separate PC which talks directly with your gateway, etc. Not sure how virtualbox does it, but I'd guess similar issues arise.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>