[Qt-interest] set connection timeout on QTcpSocket/AbstractSocket

Donal O'Connor donaloconnor at gmail.com
Thu Jul 30 13:33:12 CEST 2009


Hi,

I've searched the docs everywhere but I cannot see if it is possible to set
a timeout value when connecting to a host.

I'm using connectToHost(server,port). This seems to hang my application on
Windows CE until it times out about 10 - 30 seconds later when I receive the
error via the
error() signal emitted.

Is there a way to set a timeout value so I don't have to wait this long
before showing the error to the user?


Thanks,

Regards,
Donal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090730/2a3fa0c1/attachment.html 


More information about the Qt-interest-old mailing list