On 16 Jan 2018, at 20:50, Carl Hoefs <newsli...@autonomy.caltech.edu> wrote:
> Okay, I’ve been looking around for a temporary stop-gap measure for the time > of being, and I think getaddrinfo() may work. Make sure you try each of the addresses returned by `getaddrinfo`, not just the first. There are situations where earlier addresses won’t work but later addresses will. If you’re able to ‘cut the head’ off your BSD Sockets code — that is, replace the code that does the DNS lookup and the code that does the initial connect with one connect-by-name function — you can use `CFSocketStream` to do that connect and then extract the file descriptor from the stream pair and pass that along to your BSD Sockets code. I discussed this idea in detail on the following DevForums thread. <https://forums.developer.apple.com/message/187122#187122> Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com This email sent to arch...@mail-archive.com