[Qt-interest] QAbstractSocket::connectToHost() and IPv6

Volker volker at openbios.org
Tue Feb 16 16:54:44 CET 2010


Hi there,

if 

QAbstractSocket::connectToHost( const QString & hostName, quint16 port, 
OpenMode openMode = ReadWrite )
 
is called with a hostName which resolves to both IPv4 and IPv6 addresses - 
which protocol will be used?

Can QAbstractSocket/QTcpSocket be restricted to IPv4?

Can IPv6 support be disabled at run time?



Regards
......Volker





More information about the Qt-interest-old mailing list