Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could I send json to a server with a client ? #38

Open
BenjaminRouzaud opened this issue Apr 9, 2019 · 3 comments
Open

Could I send json to a server with a client ? #38

BenjaminRouzaud opened this issue Apr 9, 2019 · 3 comments

Comments

@BenjaminRouzaud
Copy link

Hello,

I would like to send a json with my Qt application to a python server and then retrieve information from the same server.

I did a unit test where I could easily retrieve information but I don't see any example of how to send information.

Sincerely, thank you in advance for your answer

@joncol
Copy link
Owner

joncol commented Apr 9, 2019

@BenjaminRouzaud
Copy link
Author

Hi

I don't understand in this section where you send information to the server, you just receive information ?

Sincerely

@joncol
Copy link
Owner

joncol commented Apr 9, 2019

The simplest example is https://github.com/joncol/jcon-cpp#invoking-a-remote-method-synchronously, where you send a call to the server (the call getRandomInt, with the parameter 10). Instead of 10 you could pass along any QVariantMap. I'm not sure I understand what your question is...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants