Home > Software engineering >  How do the client socket communication json data format
How do the client socket communication json data format

Time:09-28

Such as topic, do not know how to input text box under the MFC content JSON encapsulation, and then through the socket communication to send a user name and password to the server, and then receive the server validation result, landing and multithreading progress bar! Beg you give a concrete method, small white one, thanks

CodePudding user response:

Refer to my this article and see if it is you want

CodePudding user response:

Json c + + _ baidu search https://www.baidu.com/s? Wd=json + C % 2 b % 2 b & amp; Ie=utf-8

CodePudding user response:

1. The JSON encapsulation: the content of the text box input string formatting is used to implement
2. The verification results of receiving server: take return information parsing JSON format
3. The progress bar have to deal with you according to the project conditions

CodePudding user response:

Is there a specific example of a small white one is really not understand

CodePudding user response:

Can put the json data into a string, and then send

CodePudding user response:

https://sourceforge.net/projects/jsonpp/

CodePudding user response:

To step by step, can to baidu:
1. Made of string and c + + object jsoncpp transformation,
2. How to do the MFC socket communication,
3. MFC how to create a thread,
4. How to do under the MFC and the UI thread communication (custom)
5. MFC progress bar CProgressCtrl usage,
6. MFC how to obtain the text frame string (GetWindowText)

String together is the answer you want

CodePudding user response:

Don't know how many predecessors in the TCP Socket
Send (many) send (less) send (wealth)
Has been so much illness recv (), recv (wealth)
Inside the trap!
http://bbs.csdn.net/topics/380167545
  • Related