Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved A few questions about QWebsockets and packet order.

    General and Desktop
    2
    5
    165
    Loading More Posts
    • 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.
    • H
      Hasan Al-Baghdadi last edited by Hasan Al-Baghdadi

      Hi, sorry I don't have much experience with websockets and I have a few questions.

      Are Qt's websockets FIFO or LIFO (do they receive the first packets sent out first or the last packets sent out)?
      Does this hold true for all websockets, as in those that are not part of Qt?
      If not, is the packet order decided by the server or listener?

      1 Reply Last reply Reply Quote 0
      • Christian Ehrlicher
        Christian Ehrlicher Lifetime Qt Champion last edited by

        Don't understand this question - what do you mean with FIFO/LIFO here? The order of the packets which were sent or received?

        Qt has to stay free or it will die.

        1 Reply Last reply Reply Quote 0
        • H
          Hasan Al-Baghdadi last edited by

          Don't understand this question - what do you mean with FIFO/LIFO here? The order of the packets which were sent or received?

          Sorry if that was unclear. You're right, I meant does the WebSocket receive the first packets sent out first or the last packets sent out?

          1 Reply Last reply Reply Quote 0
          • Christian Ehrlicher
            Christian Ehrlicher Lifetime Qt Champion last edited by

            I don't think this order is defined at all but when is 'last packet' really the last one? After 1second? 10? 100? It shouldn't matter for the implementation, but since it's tcp/http the order should be fifo.

            Qt has to stay free or it will die.

            H 1 Reply Last reply Reply Quote 2
            • H
              Hasan Al-Baghdadi @Christian Ehrlicher last edited by

              Thanks, that clears things up.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post