[Qt-interest] setting TCP_NODELAY on a QTcpSocket

Konrad Rosenbaum konrad at silmor.de
Tue Dec 29 10:45:46 CET 2009


On Tuesday 29 December 2009, Paul England wrote:
> I'm trying to set TCP_NODELAY on a QTcpSocket
>
> I see that QAbstractSocket has setSocketOption() in Qt4.6
> No somewhat straight-forward way in 4.5?

This option is already set on QTcpSocket. The only delays you could 
encounter are in QTcpSocket itself. Use flush() and waitForBytesWritten() 
to force the data out.


	Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091229/f482ef93/attachment.bin 


More information about the Qt-interest-old mailing list