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. Fastest IPC method
QtWS25 Last Chance

Fastest IPC method

Scheduled Pinned Locked Moved General and Desktop
6 Posts 5 Posters 2.5k 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.
  • A Offline
    A Offline
    alexsho
    wrote on last edited by
    #1

    Hello,
    What is the fastest Qt IPC method that supported on both Windows and Linux?
    I need to communicate between Qt GUI application and main C++ program on both OS.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      messi
      wrote on last edited by
      #2

      IMHO is the fastest IPC via shared memory which works on both platforms.
      But it really depends what your use case is.
      What kind of data are transferred?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        Shared memory is just sharing state, but does not provide signaling. Often you need both: you need to share state and notify the other party(s) that that state has changed.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DBoosalis
          wrote on last edited by
          #4

          QLocalSocket and QLocalServer are simple wrappers around Windows and Linux versions of local sockets. Local sockets do not inherrit any overhead of tcp sockets. They are very easy to use, you just have to decide which one is going to be the server and which one the client

          1 Reply Last reply
          0
          • M Offline
            M Offline
            messi
            wrote on last edited by
            #5

            Hi Andre,
            this are assumption based on your knowledge and your experience.
            Of course totally correct.
            As I mentioned it really depends how the communication happens.
            He didn't mentioned anything about signaling.
            And since he is so eager on the word fastest without mentioning any details I gave him this answer.

            Shared memory is the fastest IPC for simple communication.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              ckakman
              wrote on last edited by
              #6

              I'd also recommend QLocalServer/Socket duo.

              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