Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 64-bit support for BonJour in Tiger?



I'll give your suggestion a try. The TXTRecord api's are not available in 10.3, which is why they weren't used; this code is carried forward from earlier releases which worked quite well.

We were hoping to implement this in a way that would work on 10.3, 32-bit, as well as 10.4, 32/64-bit. Perhaps it'll be necessary to conditionally compile this:

#if defined(__ppc64__)
	do it the Tiger way
#else
	do it the Panther way
#endif


On Jun 13, 2005, at 8:15 PM, Marc Krochmal wrote:

Hi Steve,

I'm not sure what the problem is, but I would recommend a few changes to your TXT record format. You should have a length byte in front of every key/value pair. Also, you don't need the semicolon or quotes around the value.

So your TXT record data would look like this.

\010type=ase\011version=1\007pid=123

Could you try constructing the TXT record using the TXTRecord APIs in dns_sd.h and see if that helps.

Thanks.
-Marc



On Jun 13, 2005, at 8:40 AM, Steve Olson wrote:

The following code segment from a simple test program works just great for me in 32-bit mode; when compiled with -arch ppc64, dnserror indicates -65540 (Bad Parameter).

Are there any known issues with 64-bit support of Bon Jour?


/* set up TXT data. 1-byte length followed by text */
txtlen = (uint16_t)sprintf(txtrec.txt, "type=\"ase\";version=\"%s\";pid=\"%d\"",
TEST_VERSION, getpid());


    txtrec.len = txtlen;
    txtlen++;

/*
** Pretend we are a service, and register that service with BonJour
*/
dnserror = DNSServiceRegister(
sdRef, /* uninitialized */
flags, /* 0: could take a look at possible values */
interfaceIndex, /* always 0 */
servicename, /* my string; dummy for testing */
regtype, /* always defined */
domain, /* null (local.), or arg 1 */
NULL, /* use current host name */
port, /* service-specific port number */
txtlen,
(void *)&txtrec,
myServiceRegisterCallback,
context);



Thanks in advance, Steve


_______________________________________________ Do not post admin requests to the list. They will be ignored. Bonjour-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bonjour-dev/email@hidden

This email sent to email@hidden



_______________________________________________ Do not post admin requests to the list. They will be ignored. Bonjour-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bonjour-dev/email@hidden

This email sent to email@hidden
References: 
 >64-bit support for BonJour in Tiger? (From: Steve Olson <email@hidden>)
 >Re: 64-bit support for BonJour in Tiger? (From: Marc Krochmal <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.