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