Professional Web Applications Themes

OK to connect? - Mac Programming

Back in the days of OS9, I used some code to tell me if it was ok to open a TCP/IP connection. By "OK," I mean "the computer is already connected to the internet." The idea is that you don't want the computer to dial to start a connection. If there already is a connection, then send the data, otherwise just wait and try again later. Is there similar code for OS X or is this obsolete? Thanks, Mike Hunson...

  1. #1

    Default OK to connect?

    Back in the days of OS9, I used some code to tell me if it was ok to open a
    TCP/IP connection. By "OK," I mean "the computer is already connected to
    the internet."

    The idea is that you don't want the computer to dial to start a connection.
    If there already is a connection, then send the data, otherwise just wait
    and try again later.

    Is there similar code for OS X or is this obsolete?

    Thanks,

    Mike Hunson

    Mike Guest

  2. #2

    Default Re: OK to connect?

    > The idea is that you don't want the computer to dial to start a connection. 

    Take a look at the SystemConfiguration framework and its doentation. I
    think especially the function "SCNetworkCheckReachabilityByName" might be
    interesting for you.

    Hope this helps,
    Mani
    --
    LittleSecrets, iVolume, SharingMenu:
    http://www.mani.de/

    Manfred Guest

  3. #3

    Default Re: OK to connect?

    In article <BBA9B39C.28FD6%org>, "Mike H." <org>
    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

Similar Threads

  1. Question How to connect to db ?
    By Franz in forum Brainstorming Area
    Replies: 0
    Last Post: December 3rd, 10:41 AM
  2. CS3 will not connect
    By alfie conway in forum Macromedia Contribute Connection Administrtion
    Replies: 0
    Last Post: December 13th, 01:15 PM
  3. How To Connect????
    By cactustom in forum Macromedia Contribute Connection Administrtion
    Replies: 5
    Last Post: February 27th, 05:25 AM
  4. FCS connect
    By ActionScripter1 in forum Macromedia Flash Flashcom
    Replies: 2
    Last Post: January 31st, 01:12 AM
  5. How to use “RDS.Connect” to connect to a MS Access database?
    By hannaman@msn.com in forum ASP Database
    Replies: 0
    Last Post: August 2nd, 11:09 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