Hello,

6 sty 2014 12:50 "Phil Mayers" <p.may...@imperial.ac.uk> napisaƂ(a):
> 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.
>
> 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.
>

Thank you very much for your answers. DeferToThread works fine, I just had
the (wrong) impression that names is the preferred solution.
Best Regards
Maciej Wasilak
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to