• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: mDNS Service Discovery and Text Record access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >mDNS Service Discovery and Text Record access (From: Alexander Hartner <email@hidden>)

  • Prev by Date: Custom Shape Window and standardWindowButton
  • Next by Date: NSTableView and first responder
  • Previous by thread: mDNS Service Discovery and Text Record access
  • Next by thread: Custom Shape Window and standardWindowButton
  • Index(es):
    • Date
    • Thread