Results 1 to 3 of 3

Thread: QTcpSocket - speed, latency, time

  1. #1
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default QTcpSocket - speed, latency, time

    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

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QTcpSocket - speed, latency, time

    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.

  3. The following user says thank you to caduel for this useful post:

    FatScouser (19th January 2010)

  4. #3
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTcpSocket - speed, latency, time

    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

Similar Threads

  1. Reimplement QTcpSocket to limit download speed ???
    By THRESHE in forum Qt Programming
    Replies: 3
    Last Post: 29th November 2010, 14:30
  2. QTCPSocket - Download Speed
    By tntcoda in forum Qt Programming
    Replies: 2
    Last Post: 24th May 2009, 13:47
  3. check the time of last time keyboard is pressed
    By Aki Tomar in forum General Programming
    Replies: 2
    Last Post: 5th February 2008, 09:10
  4. Reducing latency in mouse moves
    By PhilFM in forum Qt Programming
    Replies: 4
    Last Post: 6th September 2007, 09:38
  5. QTcpSocket speed problem
    By benelgiac in forum Qt Programming
    Replies: 4
    Last Post: 1st May 2007, 13:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.