Results 1 to 17 of 17

Thread: qt network performance

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2006
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy qt network performance

    hi to all,

    i'm using qt 4.1.x with vs7.1 (2003 version) on winxp.

    i've coded the following: a (qtcp)server and clients over qtcpsocket. both are gui applications (because of easier displaying any data . the server "accepts" clients, holts on-/offline status of all clients (ok, at the moment just 2), sends data from one client (lets say generator-client) to the other client (consumer-client). for each client/server connection i'm opening only one qtcpsocket with readwrite access. using a start-command the generator-client produces some double values, until the server send a stop-command. for sending/receiving data to/from a socket, i'm using a qdatastream. all send operations are finished with a flush().

    now, the generator is sending every 5ms 3 double values to the server and the server forwards it to the consumer. when i run everything on one pc, everything works fine. all data are fast received.

    but if i'm using for example 2 pc's (connected over a 100mbit hub/switch, nothing else), whereas the server/clients are started in different combinations on the pc's, then only 5-7 (approx all 20ms) messages are received form the server. the rest is getting lost.

    what i'm or qt (also read posts about qt's performance problems) or windows is making wrong? i need all information, that is produced through my generator-client. will be the transfer using udp packages faster? should i use fewer socket-connections (one for read only, one for write only)? should i use another network package (winsock, raknet, ...) than qnetwork?

    any hint would be appreciated?

    regards

    criss
    Last edited by criss; 18th July 2006 at 12:48. Reason: bug fix :)

Similar Threads

  1. more network connections simultaneously
    By cmeliak in forum Qt Programming
    Replies: 9
    Last Post: 8th June 2006, 00:17
  2. Qt4: QDir::entryList bug in windows when listing network files?
    By Yvon Halbwachs in forum Qt Programming
    Replies: 2
    Last Post: 12th May 2006, 14:22
  3. [QT 4] QTextEdit performance
    By fellobo in forum Qt Programming
    Replies: 8
    Last Post: 6th March 2006, 19:27
  4. Increasing performance from Qtextedit, listview, etc?
    By taylor34 in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2006, 10:20

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.