• 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
DNR Mapper Sample Code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DNR Mapper Sample Code?


  • Subject: DNR Mapper Sample Code?
  • From: Duane Murphy <email@hidden>
  • Date: Fri, 12 Jul 2002 17:01:03 -0700

I'm looking for sample code for using the DNR Mapper in OpenTransport.
I'm interested in a DNR that is thread friendly so StringToAddress doesnt
go so well there. :-)

I have the mapper mostly working, except for looking up a site like
www.yahoo.com. Yahoo returns a bunch of addresses. OTLookupName keeps
returning (-3160) buffer overflow. I added code to increase the size of
the buffer and once it got up to 1MB! and finally returned OK, but the
data was a mess. I asked for 1 address, but the return said there was 7.
I couldnt find 7. 1 was ok, but I couldnt find 7.

I changed it to request 10 addresses and my app ran out of memory
allocating 2MB because 1MB was not big enough.

I have done some lookups, like www.google.com, and they work fine. I get
back one address and everyone is happy.

What the devil am I doing wrong. Any tips would be great. Or suggestions
on using another API?

...Duane Murphy
Efficient Networks, Inc.
<http://www.efficient.com/>
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: DNR Mapper Sample Code?
      • From: Duane Murphy <email@hidden>
  • Prev by Date: Re: executing an application after unstuffing/expanding it
  • Next by Date: Re: DNR Mapper Sample Code?
  • Previous by thread: Re: executing an application after unstuffing/expanding it
  • Next by thread: Re: DNR Mapper Sample Code?
  • Index(es):
    • Date
    • Thread