[Qt-interest] setting TCP_NODELAY on a QTcpSocket

Paul England pengland at cmt-asia.com
Wed Dec 30 00:44:55 CET 2009


Thanks Konrad.
Very informative.

Konrad Rosenbaum wrote:
> 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
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>   



More information about the Qt-interest-old mailing list