Re: Name resolution limits
Re: Name resolution limits
- Subject: Re: Name resolution limits
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 8 Feb 2002 12:38:15 +0100
On Friday, February 8, 2002, at 02:35 AM, Josh Graessley wrote:
I believe I'm mistaken. There are a few APIs that are thread safe. I
think
gethostinfo and getaddrinfo may be thread safe. This means you could do
multiple lookups if you have multiple threads. It does seem like
overkill to
spawn 10 threads if you need to perform 10 lookups simultaneously, but
with
the public APIs, that's the only way to do it.
I'm always surprised by the answers on this topic (and every time I'm
checking my code for the safety of my mind).
Name resolution with up to 10 Threads (pool of potential and reusable
Threads) using the Cocoa APIs is working fine.
No performance issue.
_______________________________________________
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.