Alex Rivera | Logout

Bonjour over bluetooth WITHOUT Gamekit ?

Asked 2010-10-02T03:04:44.390
21

I am wondering the possibility of directly using bonjour over bluetooth in iPhone OS 3.0 or later without using GameKit. Can anyone provide any examples ?

Edit
Report

1 Answer

2

If Bluetooth is enabled, on a new-enough device (3G and above, or iPod equivalent, or iPad) and a new-enough OS (3.1 apparently), Bonjour will automatically work over Bluetooth using link-local addresses (168.254.*). Then you just use TCP/UDP normally.

(Under the hood, I'm pretty sure GameKit uses Bonjour-over-IP-over-Bluetooth.)

Sypposedly the publishing/browsing is done at the Bluetooth layer, but if one publishes a Bonjour service and the other browses for it, an automatic IP-over-Bluetooth connection is established.

Any Bonjour examples should automatically work.

answered 2010-10-02T13:27:30.683

Your Answer