Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

whitehexagon

macrumors regular
Original poster
May 12, 2007
147
0
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

macrumors member
Jul 28, 2008
56
0
The standard BSD sockets are available, I guess CFSocket are an option as well. Check out the sample codes such as WiTap.
 

whitehexagon

macrumors regular
Original poster
May 12, 2007
147
0
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

macrumors member
Jul 28, 2008
56
0
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:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.