Problem description: currently, need from the Server to the Client information query, query by means of sending A message, but there are many types of the content of the query, each of which is A structure type, such as Struct A {int modId, string name} Struct B {int cardId, int process} could expand subsequent queries,
Requirements: send a message to the Client, will take the type of query message, the Client after receiving the message will send back the contents of the query, now I need a unified data structure, make various types of queries can send and receive, do you have any good ideas,
Now think of time by the data inside the data segment of uint8_t * and according to the content of the query parsing, in accordance with the corresponding structure analysis,