<p dir="ltr">Hello,</p>
<p dir="ltr">6 sty 2014 12:50 "Phil Mayers" <<a href="mailto:p.mayers@imperial.ac.uk">p.mayers@imperial.ac.uk</a>> napisaƂ(a):<br>
> IMO *all* applications should *always* use getaddrinfo() for resolution of user-supplied names. It really really annoys me when people decide to re-invent it - this is hard to get right, and apps like Chrome having their own implementation precludes things like DHCP-based 6724 tables in the future.<br>

><br>
> So yes, use "deferToThread" and "getaddrinfo". Note that you should not, in general, specify the address family; let the AI_ADDRCONFIG flag sort that out for you.<br>
><br></p>
<p dir="ltr">Thank you very much for your answers. DeferToThread works fine, I just had the (wrong) impression that names is the preferred solution.<br>
Best Regards<br>
Maciej Wasilak</p>