PDA

View Full Version : API help on connecting over wireless to iPhone?




whitehexagon
Nov 26, 2008, 11:03 AM
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?

Thanks
Peter



Taum
Nov 26, 2008, 12:26 PM
The standard BSD sockets are available, I guess CFSocket are an option as well. Check out the sample codes such as WiTap.

whitehexagon
Nov 27, 2008, 07:23 AM
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.

Taum
Nov 28, 2008, 02:34 AM
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: