Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    RPC in QT

    General and Desktop
    3
    8
    3262
    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.
    • R
      RohitIti last edited by

      Hi ,

      Can any one give me steps for starting with RPC in qt. I dont know hot to start with it, where the library should be placed in windows and dont know how to code that.

      Thank you

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        QNetworkAccessManager is your friend here.

        What do you mean by "where the library should be placed in windows" ?

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

          I just googled how to implement RPC in QT. Like java there are no ready made classes that QT provides as such as per my understanding. We need to build the Qjson project that available from net and take that library the plugin.

          Is there any other way to use it.
          Example: For using TCP and UDP we already have classes in
          QT , like that do we have any means of doing RPC ?

          1 Reply Last reply Reply Quote 0
          • R
            RohitIti last edited by

            Thank you for your reply SGaist. Is there any Template kind of projects some where that i can get and use it for my implementation of RPC ?

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              No, there's no template for that, however you can take a look at Qxt that provides some ready made classes for that. Depending on what kind of service your want to access e.g. using json-rpc, there's already several libraries made with Qt that you could test.

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

                Thank you SGaist, can you provide me those libraries link.
                i want RPC at the top and keeping udp as the local socket. is there any simple example for this ?

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  Not knowing what kind of RPC you want to do, I can't say more than google is your friend.

                  [quote author="RohitIti" date="1410344547"]
                  i want RPC at the top and keeping udp as the local socket
                  [/quote]

                  That's not clear at all

                  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 Reply Quote 0
                  • M
                    MuldeR last edited by

                    Unless you need to do the RPC across the network, i.e. from one machine to another one, you may also implement this via a QSharedMemory (for passing the data) and two QSystemSemaphore's (for synchronization). I have successfully implemented RPC-like communication between a "client" and a "server" process that running on the same machine in this way.

                    My OpenSource software at: http://muldersoft.com/

                    Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

                    Go visit the coop: http://youtu.be/Jay...

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