Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Reception of UDP packet on iOS stagnates

Reception of UDP packet on iOS stagnates

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 745 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    laseranichris
    wrote on last edited by
    #1

    Hello!

    I am writing an App for iOS using Qt 5.3.1.

    The App is supposed to receive UDP packets sent about every 40 mS.
    The packets contain only a few bytes.

    I connect the signal "readyRead" with my method to process the incoming data:

    @QObject::connect(&udpSocket, SIGNAL (readyRead()), this, SLOT (processPendingDatagrams()));
    @

    Now I got the following problem:
    Instead of receiving the packets one by one I get burst of packets and than breaks of about 300 mS.

    Using Qt on Mac OS X or Windows the packets are received equidistant.

    It seems that there is some packet queue and the signal "readyRead" is emitted after several packtes are received.
    I already tried to set the read buffer size and socket options like "LowDelayOption" or "ReceiveBufferSizeSocketOption".
    Nothing made a difference.

    Does anybody has experience with UDP packets on iOS using Qt?

    Thanks for your help!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved