Home > Back-end > Used of netty bosses? I have a question
Used of netty bosses? I have a question
Time:09-25
When using netty server sends the different data, such as sending the order data, to return a single data, the client how to discern what kind of data, and then to deal with? Bosses grant instruction,
CodePudding user response:
Defines the message format, according to the format, order type,
CodePudding user response:
As described above, each packet has submitted to the literary style, for example, message type, {type: 1, the body: {name: clothes, price: 130}} 1-2 - a refund order under the single client is data and analytic type decides how to operate
CodePudding user response:
The server is defined data types, had told the client, like I this figure