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 Updated to NodeBB v4.3 + New Features

Sending data to queue of servers

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 239 Views 2 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.
  • qtprogrammer123Q Offline
    qtprogrammer123Q Offline
    qtprogrammer123
    wrote on 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.HilkJ 1 Reply Last reply
    0
    • qtprogrammer123Q qtprogrammer123

      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.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on 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
      • qtprogrammer123Q Offline
        qtprogrammer123Q Offline
        qtprogrammer123
        wrote on 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.HilkJ 1 Reply Last reply
        0
        • qtprogrammer123Q qtprogrammer123

          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.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on 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
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on 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
            • qtprogrammer123Q Offline
              qtprogrammer123Q Offline
              qtprogrammer123
              wrote on 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
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on 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

                • Login

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