Re: mDNS Service Discovery and Text Record access
Re: mDNS Service Discovery and Text Record access
- Subject: Re: mDNS Service Discovery and Text Record access
- From: "Shawn Erickson" <email@hidden>
- Date: Wed, 18 Apr 2007 16:09:18 -0700
On 4/18/07, Alexander Hartner <email@hidden> wrote:
I am trying to discover a service published via mDNS.
Given that this is a Cocoa list I have to ask why aren't you using
NSNetService, NSSetServiceBrowser or CFNetServices. Those likely will
give you a simpler interface to do what it looks like you are
attempting to do.
As to your issue... In the following "char * hostUrl[valueLength+1];"
you are creating a runtime allocated array of char pointers (not
chars) and in 32-bit builds a pointer is 4 bytes (the source of your
four characters). You should change that line to "char
hostUrl[valueLength+1];".
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden