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. Sending data to queue of servers
Forum Update on Monday, May 27th 2025

Sending data to queue of servers

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 236 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.
  • Q Offline
    Q Offline
    qtprogrammer123
    wrote on 20 Jul 2021, 11:41 last edited by
    #1

    Hi i wonna send same file to multiple servers one by one. It takes 30 min, so i thinking about Qt Concurrent or Event loop, any advice?

    Mam moc jak Harry Potter, w zębach mogę przenieść hotel.

    J 1 Reply Last reply 20 Jul 2021, 11:45
    0
    • Q qtprogrammer123
      20 Jul 2021, 11:41

      Hi i wonna send same file to multiple servers one by one. It takes 30 min, so i thinking about Qt Concurrent or Event loop, any advice?

      J Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 20 Jul 2021, 11:45 last edited by
      #2

      @qtprogrammer123 said in Sending data to queue of servers:

      Qt Concurrent or Event loop

      unlikely and please no!

      Share a bit more information, what server, what data, what connection type

      Almost certainly, independent of your answer as long as you use Qt classes, Qt will offer a signal when the "file transfer" of a file is done, and you can use that to dequeue a queue/list/vector and send the next file


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qtprogrammer123
        wrote on 20 Jul 2021, 11:54 last edited by qtprogrammer123
        #3

        It's binary file, and i reciving info from server about processing it after upload, im using tcp

        File -> Server
        Server -> Progress bar value
        ...

        Mam moc jak Harry Potter, w zębach mogę przenieść hotel.

        J 1 Reply Last reply 20 Jul 2021, 13:19
        0
        • Q qtprogrammer123
          20 Jul 2021, 11:54

          It's binary file, and i reciving info from server about processing it after upload, im using tcp

          File -> Server
          Server -> Progress bar value
          ...

          J Offline
          J Offline
          J.Hilk
          Moderators
          wrote on 20 Jul 2021, 13:19 last edited by
          #4

          @qtprogrammer123
          so QTcpSocket in essence ? than it has a bytesWritten signal, inherited from QIODevice you can use that to see when the data from the file is completely written. And send the next from the queue.

          Assuming you're not blocking the event loop via waitForSomething calls or other infinite loops


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 20 Jul 2021, 19:10 last edited by
            #5

            Hi,

            Beside the good points of @J-Hilk, how many files are we talking about ? To how many servers ? Which size ? Which type of connection do you have ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qtprogrammer123
              wrote on 22 Jul 2021, 07:49 last edited by
              #6

              Its only one file, up to 1 MiB, max 1000 servers, reciving data from server after upload up to 5 sec

              Mam moc jak Harry Potter, w zębach mogę przenieść hotel.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 22 Jul 2021, 17:40 last edited by
                #7

                Are these REST services ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0

                1/7

                20 Jul 2021, 11:41

                • Login

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