On Dec 20, 2016, at 12:11 PM, Jens Alfke <j...@mooseyard.com> wrote:
> 
>> On Dec 20, 2016, at 9:56 AM, Quinn The Eskimo! <eski...@apple.com> wrote:
>> 
>>> What’s the programmatic way to determine the localhost’s Bonjour hostname … 
>>> ?
>> 
>> SCDynamicStoreCopyLocalHostName
> 
> It looks as though this just returns the first component of the name, which 
> needs to have “.local” appended; is this correct?

I'm not sure what you mean by "Bonjour hostname", but in iOS apps using Bonjour 
calling CNCopyCurrentNetworkInfo(CNCopySupportedInterfaces()) & friends will 
obtain the SSID of the connected network, if that's what you're looking for.

-Carl



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to