Hello all,
I found and read the docs and some earlier archives on this list and I
think I've only done half of the work. I've browsed for services and have
the names of them, but the next step is to take those names and translate
them into actual services using mDNS_StartResolveService().
Someone earlier had a similar question...
http://lists.apple.com/archives/rendezvous/2003/Feb/19/obtaininganipaddrfromana.001.txt
Believe me, I'd love to do a cocoa only implementation, but for things to
fly here, I have to show them cross platform.
Thanks for everyone's input.
_ michael
> I should add that I'm running on Mac OS X using the mDNSPosix code.
>
> Thank you, I'll give that a try.
>
> _ michael
>
>>> I am new to Rendezvous and am trying to whip up a
>> demo to show
>>> internally in my company.
>>>
>>> Currently, the code only prints out the name,
>> service type, and
>>> domain and tries to print out the IP and Port. The
>> ip and port and
>>> nowhere near the values that I registered the
>> service with so I can
>>> only assume I'm doing something wrong. Can you help
>> me pinpoint > that?
>>
>> I'm new here too, but my first instinct is you're
>> getting bitten by endian issues. I think the
>> Rendezvous API is returning stuff in network order, so
>> you need to convert to hostmachine order.
>>
>> Look into ntohs() and ntohl().
>>
>> printf("Port: %d\n",
>> ntohs(answer->rdata->u.srv.port));
>>
>> Hope this helps,
>> -Eric
>> _______________________________________________
>> rendezvous mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/rendezvous
>> Do not post admin requests to the list. They will be ignored.
> _______________________________________________
> rendezvous mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/rendezvous
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
rendezvous mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/rendezvous
Do not post admin requests to the list. They will be ignored.