Re: waiting for IPv4 addresses over bluetooth
Re: waiting for IPv4 addresses over bluetooth
- Subject: Re: waiting for IPv4 addresses over bluetooth
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Sat, 31 May 2014 17:40:31 -0700
On 31 May 2014, at 17:32, justin webster <email@hidden> wrote:
> as far as I can tell my server has no option but to advertise on all network interfaces [...]
That's not true. With the low-level DNS-SD API you can choose which interface to operate over. Each routine has an "interfaceIndex" parameter. Normally you pass in kDNSServiceInterfaceIndexAny, which causes the Bonjour operation to run over all interfaces [1], but you can pass in the index of a specific interface if you like. See <dns_sd.h> for the details, and DNSSDObjects sample code for an example of how to use these routines from Cocoa code.
<https://developer.apple.com/library/mac/#samplecode/DNSSDObjects/>
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
[1] More or less. See QA1753 "Bonjour over Bluetooth on iOS 5.0" for some edge cases.
<https://developer.apple.com/library/ios/#qa/qa1753/_index.html>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden