DNR Mapper Sample Code?
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.