Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Speaking Applications

    General and Desktop
    4
    7
    2487
    Loading More Posts
    • 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
      lorik last edited by

      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 Reply Quote 0
      • G
        giesbert last edited by

        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 Reply Quote 0
        • L
          lorik last edited by

          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 Reply Quote 0
          • R
            Rahul Das last edited by

            :) 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 :)


              Rahul Das
            

            1 Reply Last reply Reply Quote 0
            • A
              andre last edited by

              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 Reply Quote 0
              • L
                lorik last edited by

                Thank for your help

                1 Reply Last reply Reply Quote 0
                • L
                  lorik last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post