Using airport with a program

Discussion in 'Mac Programming' started by Forquare1, Jul 10, 2008.

  1. Forquare1 macrumors newbie

    Joined:
    Jun 22, 2008
    #1
    Hi all,

    I'm wanting to create an application that looks at the possible wifi networks around me, I just want to make my own app that periodically checks for new networks, which will save me clicking on the airport icon continuously.

    Thanks for any help,

    Ben
     
  2. Manty macrumors member

    Joined:
    Mar 18, 2008
    Location:
    Lisbon, Portugal
    #2
    Search for "Apple80211.h" on google, that should do the trick.
    If you have any questions after checking that just ask, i would be glad to help.
     
  3. Forquare1 thread starter macrumors newbie

    Joined:
    Jun 22, 2008
    #3
    Im guessing I don't need to implement anything from this header? Just include and call as I wish?

    Sorry, coming from the Java world, headers still don't make a whole load of sense...

    Ben
     
  4. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #4
    A header file, and the prototypes it contains, gives you a peek at what methods are supported. This can be avoided in Java because even with the "binary" distribution of class files in a library, the object and method names and arguments are still present.

    In C and C-alike languages the header file tells the compiler that at link time or load time for dynamic libs a function with that signature will be available.

    It also serves as bare-bones documentation for a developer to know what methods are provided.

    -Lee
     
  5. Manty macrumors member

    Joined:
    Mar 18, 2008
    Location:
    Lisbon, Portugal
    #5
    Include the header and link the target with the private framework Apple80211.framework.
    Just remember that is a reverse engineered header and has some limitations, for example if Apple changes the framework maybe your program will stop working, but i use it in leopard and it works fine and the Apple80211 framework version appears to be the same in Snow Leopard (i saw some screenshots somewhere).
     

Share This Page