Results 1 to 3 of 3

Thread: QTcpSocket and readyRead and QTimer

  1. #1
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    35
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question QTcpSocket and readyRead and QTimer



    Hi everyone,

    I am developing an application that works over tcp, i have created a QTcpSocket and connect its readyRead signal to an slot. I perform some work in the slot and i trigger different signal to an higher level. this work fine but if the server start to send several msg subsequently the comunication slow down and the signal its no trigger. After pulling out some of my hear from my head i decide to try to connect the slot to a timeout signal from timer that tick every 50 ms, with this solution(or i dont know how would you like to call it). the thing speed up but i have no idea why? could some one explain me this?.

    shall i use the same solution for the serial port, and in the server side? why? why?

    thanks for clearing this to me.
    CAFU......

  2. #2
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    35
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTcpSocket and readyRead and QTimer

    Hi again everybody,


    I have other question, how to know when to used which type of connection for the signals and slots?


    AutoConnection,
    DirectConnection, // i understand this is like calling directly the slot(interrupt and perform)
    QueuedConnection, //put it up and wait till there is time to perform, but continue working
    AutoCompatConnection, // no idea
    BlockingQueuedConnection ////put it up and wait till there is time to perform, stop flow and after is perform go on.


    is like that or am I completly wrong about it?

    and what about the prevoius post? can someone explain me or is possible a Qt bug?, iIreally douubt this, but i would like to know the reason.
    Last edited by cafu; 10th December 2009 at 13:31.
    CAFU......

  3. #3
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    35
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTcpSocket and readyRead and QTimer

    No updates about this...
    CAFU......

Similar Threads

  1. Background Question about QTcpSocket
    By sm3.142 in forum Qt Programming
    Replies: 6
    Last Post: 4th October 2007, 22:32

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.