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. Speaking Applications

Speaking Applications

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 2.9k 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.
  • L Offline
    L Offline
    lorik
    wrote on last edited by
    #1

    I need to write two applications that will speak with each other on the same computer.
    what is the best way of doing it in Qt?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      by speaking, you mean inter process communication?
      That depends on the platform you use...

      On all platforms, you can use TCP/IP
      On, at least Linux, you can use QDBus

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lorik
        wrote on last edited by
        #3

        Excuse me for such basic question,
        but if I use TCP/IP , my comp have to be connected to the Internet even in case that I need communication between two inter processes?

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rahul Das
          wrote on last edited by
          #4

          :) You can start from "here":http://developer.qt.nokia.com/doc/qt-4.7/examples-ipc.html :)

          TCP /IP samples in "here":http://developer.qt.nokia.com/doc/qt-4.7/examples-network.html :)


          Declaration of (Platform) independence.

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

            No, they do not need to be hooked to the internet for that. The address 127.0.0.1 points to "this computer" ("localhost") on all machines. Note that there are even more alternatives, like shared memory, local sockets, and also more high-level alternatives like "QxtRPCPeer":http://libqxt.bitbucket.org/doc/0.6/qxtrpcpeer.html class.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lorik
              wrote on last edited by
              #6

              Thank for your help

              1 Reply Last reply
              0
              • L Offline
                L Offline
                lorik
                wrote on last edited by
                #7

                I want to use QxtRPCPeer in the PEER mode.
                Where can I get a simple example of its use?

                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