Professional Web Applications Themes

Determining Remote Access (PPP) status under MacOS 9.1? - Mac Programming

I know I've seen this floating around years ago, but since it wasn't important then, I didn't "notice" it. Now, I think I'm in a situation where I need it, and I can't find it. Maybe somebody here can clue me in. I need to figure out, within a program, whether Remote Access/OpenTransport is currently conected to the 'net, preferably without triggering a connection if it isn't already up. Over the years, I've noticed that Remote Access (or at least, I'm *GUESSING* it's Remote Access...) puts up a nasty modal box that grinds the rest of the machine to a ...

  1. #1

    Default Determining Remote Access (PPP) status under MacOS 9.1?


    I know I've seen this floating around years ago, but since it wasn't
    important then, I didn't "notice" it. Now, I think I'm in a situation
    where I need it, and I can't find it. Maybe somebody here can clue me in.

    I need to figure out, within a program, whether Remote
    Access/OpenTransport is currently conected to the 'net, preferably
    without triggering a connection if it isn't already up. Over the years,
    I've noticed that Remote Access (or at least, I'm *GUESSING* it's Remote
    Access...) puts up a nasty modal box that grinds the rest of the machine
    to a halt if the Remote Access control panel/app isn't open and
    something tries to make traffic on the 'net when the connection is down.
    This can be ugly, as anyone who has encountered it is well aware.

    I'd prefer to avoid that, if possible, while also avoiding blocking my
    program until the connection comes up. What I have in mind is a loop
    like so, sitting off in a separate thread from the main program thread:

    ResultType PhoneHome(DataToSend *MessagePacket)
    {
    ResultType Result;
    boolean Connected = false; /* Assume we aren't until further notice */

    while (!Connected)
    {
    GoDoOtherThings(); /* Might YieldToAnyThread() */
    YieldToAnyThread(); /* Guarantee one yield per loop */
    Connected = AreWeConnectedToTheInternet();
    }
    /* If we're here, the connection is open. Lets do our thing. */
    Result = SendPacketToServer(MessagePacket);
    return Result;
    }

    Anybody got anything (or know where I should look for the "recipe") that
    would serve for "AreWeConnectedToTheInternet()"?

    --
    Don Bruder - net <--- Preferred Email - SpamAssassinated.
    Hate SPAM? See <http://www.spamassassin.org> for some seriously great info.
    I will choose a path that's clear: I will choose Free Will! - N. Peart
    Fly trap info pages: <http://www.sonic.net/~dakidd/Horses/FlyTrap/index.html>
    Don Guest

  2. #2

    Default Re: Determining Remote Access (PPP) status under MacOS 9.1?

    In article <By0Hb.5025$sonic.net>,
    Don Bruder <net> wrote:
     

    <http://developer.apple.com/technotes/tn/tn1145.html>

    hth

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Guest

  3. #3

    Default Re: Determining Remote Access (PPP) status under MacOS 9.1?

    In article <mit.edu>,
    Miro Jurisic <org> wrote:
     
    >
    > <http://developer.apple.com/technotes/tn/tn1145.html>
    >
    > hth[/ref]

    Indeed it does. Thank you, my good man! :)

    --
    Don Bruder - net <--- Preferred Email - SpamAssassinated.
    Hate SPAM? See <http://www.spamassassin.org> for some seriously great info.
    I will choose a path that's clear: I will choose Free Will! - N. Peart
    Fly trap info pages: <http://www.sonic.net/~dakidd/Horses/FlyTrap/index.html>
    Don Guest

Similar Threads

  1. access to Browser status bar
    By Chuck1411 in forum Coldfusion Flash Integration
    Replies: 2
    Last Post: June 29th, 10:33 PM
  2. The request failed with HTTP status 403: Access Forbidden.
    By giang08 in forum ASP.NET Web Services
    Replies: 3
    Last Post: December 7th, 09:11 AM
  3. Check remote server status
    By John Smith in forum PHP Development
    Replies: 5
    Last Post: January 31st, 02:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139