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.

A few questions about QWebsockets and packet order.

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 327 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 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
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 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 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
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 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
          2
          • Christian EhrlicherC Christian Ehrlicher

            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 last edited by
            #5

            Thanks, that clears things up.

            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