Results 1 to 3 of 3

Thread: reading TCP socket, serialPort & Microusb ports in a single thread.

  1. #1
    Join Date
    Apr 2011
    Location
    Gurgaon
    Posts
    32
    Thanks
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Exclamation reading TCP socket, serialPort & Microusb ports in a single thread.

    Hi Guys,
    I have one thread which is reading simultaneously from TCP socket, microusb port & serial port simulteneously,
    I have open all these ports in thread's constructor.
    But I am getting some delay in all slots which are connected with readyRead signals.

    Any idea why it is happening?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: reading TCP socket, serialPort & Microusb ports in a single thread.

    Did you connect to slots defined in the thread class?
    If so, did you pass a fifth argument to connect()?

    Cheers,
    _

  3. #3
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: reading TCP socket, serialPort & Microusb ports in a single thread.

    What do You mean saying some delay ? Signals in thread are serviced sequentially.

Similar Threads

  1. Replies: 37
    Last Post: 14th December 2012, 09:50
  2. Errors when reading a QImage sent through a socket
    By volatile_ah in forum Qt Programming
    Replies: 5
    Last Post: 1st September 2009, 13:01
  3. Socket Reading causes CPU to max out
    By tntcoda in forum Qt Programming
    Replies: 3
    Last Post: 25th May 2009, 00:07
  4. Reading data from socket
    By ComaWhite in forum Qt Programming
    Replies: 1
    Last Post: 4th December 2008, 18:22
  5. Socket Reading Advice
    By tntcoda in forum Qt Programming
    Replies: 3
    Last Post: 4th July 2008, 11:26

Tags for this Thread

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.