ios - Is NSNetService only works with .local domain? -
i have code cocoahttpserver publishes service using bonjour. , tt uses nsnetservice this.
it works fine (both on os x , ios) if define domain ".local". however, if define else, doesn't publish service , doesn't phone call delegate didn't publish server.
i investigated , found next info.
documentation nsnetservice class:
this class , nsnetservicebrowser class utilize multicast dns convey info network services , application.
documentation bonjour domain names
on bonjour systems, local. used indicate name should looked using ip multicast query on local ip network.
do understand correctly nsnetservice class can work .local domain , can't work wide-area bonjour (different domains)?
p.s. if not missing anything, plan contact apple, because it's unusual have argument 1 right value , other wrong (and not reported through errors)
nsnetservice work domains other local..
before publishing service, utilize nsnetservicebrowser , - (void)searchforregistrationdomains find suitable registration domains.
apple's nsnetservices , cfnetservices programming guide contains section including sample code: browsing domains.
ios osx bonjour
No comments:
Post a Comment