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?



Steve,

You should also make sure the port number you pass to DNSServiceRegister() is in network byte order by using htons().


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>)



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.