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

RPC in QT

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 3.8k Views 1 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.
  • R Offline
    R Offline
    RohitIti
    wrote on 10 Sept 2014, 05:54 last edited by
    #1

    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
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 10 Sept 2014, 07:20 last edited by
      #2

      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
      0
      • R Offline
        R Offline
        RohitIti
        wrote on 10 Sept 2014, 09:44 last edited by
        #3

        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
        0
        • R Offline
          R Offline
          RohitIti
          wrote on 10 Sept 2014, 09:45 last edited by
          #4

          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
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 10 Sept 2014, 10:03 last edited by
            #5

            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
            0
            • R Offline
              R Offline
              RohitIti
              wrote on 10 Sept 2014, 10:22 last edited by
              #6

              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
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 10 Sept 2014, 20:20 last edited by
                #7

                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
                0
                • M Offline
                  M Offline
                  MuldeR
                  wrote on 10 Sept 2014, 23:25 last edited by
                  #8

                  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
                  0

                  7/8

                  10 Sept 2014, 20:20

                  • Login

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