RPC in QT
-
wrote on 10 Sept 2014, 05:54 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
-
Hi and welcome to devnet,
QNetworkAccessManager is your friend here.
What do you mean by "where the library should be placed in windows" ?
-
wrote on 10 Sept 2014, 09:44 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 ? -
wrote on 10 Sept 2014, 09:45 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 ?
-
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.
-
wrote on 10 Sept 2014, 10:22 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 ? -
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
-
wrote on 10 Sept 2014, 23:25 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.
7/8