NSNetService works fine, but can't get hostName, resolve causes error

前端 未结 3 500
旧巷少年郎
旧巷少年郎 2020-12-21 08:41

I\'m using Bonjour with an NSNetService to publish a server from my iPhone. It all works as expected, I can browse the pages I\'m serving etc. However, on the iPhone I want

3条回答
  •  一向
    一向 (楼主)
    2020-12-21 09:26

    Check this link out:

    This says your error it was still trying to resolve the service:

    https://developer.apple.com/library/IOs/documentation/Cocoa/Reference/Foundation/Classes/NSNetService_Class/index.html#//apple_ref/c/tdef/NSNetServicesError

提交回复
热议问题