On sexta-feira, 22 de março de 2013 23.34.51, Etienne Sandré-Chardonnal wrote: > I got it... In fact, I just learned that it's not possible to listen > on both IPv4 and IPv6 with the same socket, and that QHostAddress::Any > means only IPv4
That's incorrect. QHostAddress::Any listens on both address families on any modern OS. It breaks only on Windows XP because the IPv6 stack there is an add-on, not built-in. Then again, no one runs that connected to the Internet (right?) and definitely no one seriously uses that for IPv6. QHostAddress::AnyIPv4 listens only on IPv4. > Qt automatically uses the IPv6 when the DNS lookup returns both IPv4 > and IPv6, which caused the issue. > > How is it done usually in server applications? Are there always two > QTcpServers , one for IPv4 and one for IPv6? See above. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
