1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

API help on connecting over wireless to iPhone?

Discussion in 'iPhone/iPad Programming' started by whitehexagon, Nov 26, 2008.

  1. macrumors regular


    I looking for tips/pointers on which API's to use that support connecting to the iPhone from my mac using wireless, or even from another iphone.

    I've seen this is possible with the 'Air Sharing' application, but not sure where to start. Is it somehow possible to setup server sockets?

  2. macrumors member

    The standard BSD sockets are available, I guess CFSocket are an option as well. Check out the sample codes such as WiTap.
  3. macrumors regular


    seems like there is a dependency on Bonjour for two phones to be able to find each other then? I supose what I really trying to do here an an ad hoc local network between phones and it's starting to sound like it's not possible.
  4. macrumors member

    There is not dependency on Bonjour, just because the sample code uses it doesn't mean you *have to* ... but otherwise you need to know the IP address and port to connect to, which is obviously less user-friendly.

    I don't think an iPhone can *create* an ad-hoc Wifi network, altough it can join one. At least on mine I don't see how to do this :confused:

Share This Page