Results 1 to 2 of 2

Thread: Slow transfer speed for Qt Loopback Networking Example

  1. #1
    Join Date
    Apr 2008
    Posts
    53
    Thanks
    10

    Default Slow transfer speed for Qt Loopback Networking Example

    Hi,

    When I run Qt's network Loopback example on a single machine, it will finish 50MB in about 1 or 2 seconds. However when I modify it to run 2 instances on 2 computers (1 server 1 client), the transfer speed drops all the way down to a couple hundred KB per second. Can anyone please tell me why?

    Thanks

    (For each of the server and client, just need to make modifications to the void Dialog::start() function, setting the server computer to only listen() and the client computer to only connect())
    Last edited by jmsbc; 7th January 2010 at 19:17.

  2. #2
    Join Date
    Apr 2008
    Posts
    53
    Thanks
    10

    Default Re: Slow transfer speed for Qt Loopback Networking Example

    The slow transfer speed problem has been fixed (this problem only occurs on some of the machines that I test on, even though they are identical machines).

    The current version of Qt that I'm using 4.5.0 has a hack in their qnativesocketengine_win file that performs socket writing in 49152 byte chunks. For some reason this would cause my machine to write data at slow speeds if I call the write() function with data size greater than 49152. Therefore I am required to write a wrapper around the write() function that breaks up the writes into data sizes less than 49152.

    This applies to the loopback example because they specify a const int PAYLOADSIZE of 65KB at the top of the dialog.cpp file. When I change this to any value less than 49152, my transfer speed goes back to normal.

Similar Threads

  1. slow the speed of the mouse
    By omega36 in forum Qt Programming
    Replies: 3
    Last Post: 29th October 2008, 09:58
  2. QHttp::dataSendProgress transfer speed Kb sec.
    By patrik08 in forum Qt Programming
    Replies: 14
    Last Post: 6th March 2007, 23:34
  3. QScrollBar + setToolTip speed on display ... to slow
    By patrik08 in forum Qt Programming
    Replies: 5
    Last Post: 26th February 2007, 13:27
  4. Qt-3 and networking
    By a550ee in forum Qt Programming
    Replies: 3
    Last Post: 3rd October 2006, 11:15
  5. Networking Help please
    By munna in forum Newbie
    Replies: 1
    Last Post: 17th September 2006, 09:35

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.