Re: Trouble connecting to NSNetService
Re: Trouble connecting to NSNetService
- Subject: Re: Trouble connecting to NSNetService
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Fri, 26 Sep 2014 11:23:41 +0100
On 25 Sep 2014, at 21:34, Rick Mann <email@hidden> wrote:
> On Sep 25, 2014, at 05:09 , Quinn The Eskimo! <email@hidden> wrote:
>
>> Are you using -[NSNetService getInputStream:outputStream:] to create these streams?
>
> yes
Interesting. Well, there are two interesting things here:
A. How is this address getting into resolved services address list?
> Address: 0.0.0.0:53767
B. ENOTCONN (57) is quite a strange error. Why are you getting it?
From your logging it seems that you're resolving the service before creating streams that connect to it. That's obviously useful for debugging but it should be unnecessary for the connection to go through. If you don't do the resolve, do you still fail with that error.
Beyond that, I think issue A is what's important here. How did you get an A record with 0.0.0.0? I suspect your device is advertising that, in which case it needs to stop.
You should look at a packet trace of the device's response to the A record query from your Mac. Does it include a 0.0.0.0 record?
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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