Re: QDataSream: No Device
QTcpServer needs an event loop running. So does QTcpSocket.
Re: QDataSream: No Device
Actually, the QT documentation site says that both QTcpSocket and QTcpServer can be used without an event loop.
Re: QDataSream: No Device
You must initialize timeout to false (see here) and you have to invoke QIODevice::waitForReadyRead() and QIODevice::waitForBytesWritten() in proper places to wait for data to be passed over the network.
Re: QDataSream: No Device
Awesome, thanks a lot. I would never have been able to locate that QT bug. I still have a little trouble with the two other blocking calls because I get a segmentation fault. Do you have any idea what could be causing this?
Re: QDataSream: No Device
Most segfaults are caused by dangling pointers. Use a debugger to see where it crashes and what parameters were passed to functions on the call stack.