PDA

View Full Version : QTcpSocket - speed, latency, time



FatScouser
19th January 2010, 11:07
Hi,
I need to stream small amounts of data continuously between two PCs as fast as possible. We hope to feed data across at 500 Hz, which equates to a period of 2 milliseconds. Is this at all possible using QTcpSocket?

Any information regarding expected time of travel / latency between PCs using QTcpSocket would be much appreciated!
Many thanks,
J

caduel
19th January 2010, 11:43
do you need tcp, udp should be quicker (but does not guarantee that all packages get there; maybe you don't care about that).
also note that unless you run a RTOS, linux or windows do not guarantee that your processes will be run every 2 ms.

FatScouser
19th January 2010, 13:25
Hi Caduel,

Thanks for your feedback.

I didn't know that UTP was quicker. However, we must guarantee that data gets to its destination in synchronous/correct order: it's a quasi-realtime application...

I understand the non-RTOS issues, e.g. associated jitter, and we have some ways to combat this. All things being equal, do you have any information on the actual timings/latencies involved in using QTcpSocket (or QUdpSocket)?

Thanks, J