Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. A few questions about QWebsockets and packet order.
Forum Updated to NodeBB v4.3 + New Features

A few questions about QWebsockets and packet order.

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 336 Views
  • 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 Offline
    H Offline
    Hasan Al-Baghdadi
    wrote on 23 Apr 2019, 15:45 last edited by Hasan Al-Baghdadi
    #1

    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
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 23 Apr 2019, 15:54 last edited by
      #2

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

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hasan Al-Baghdadi
        wrote on 23 Apr 2019, 15:57 last edited by
        #3

        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
        0
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 23 Apr 2019, 16:09 last edited by
          #4

          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 Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          H 1 Reply Last reply 23 Apr 2019, 16:47
          2
          • C Christian Ehrlicher
            23 Apr 2019, 16:09

            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.

            H Offline
            H Offline
            Hasan Al-Baghdadi
            wrote on 23 Apr 2019, 16:47 last edited by
            #5

            Thanks, that clears things up.

            1 Reply Last reply
            0

            2/5

            23 Apr 2019, 15:54

            • Login

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