Home > Back-end > Mina framework how to decode a complex object
Mina framework how to decode a complex object
Time:09-19
As shown in figure, give me a TCP protocol message document:
See the meaning of the document stDeviceStatus is a similar List object array data, then use the mina IoBuffer how to parse the data? Have no idea, please pass by big help, thank you first!
CodePudding user response:
This is not the first interface document TCP interface can't define, ambiguity is very much, such as the length of the int, big endian or small endian
Mina is not updated for many years, the main process to do netty, in netty, about this we can see
This seems to API, call methods directly, and the suitable parameters, don't need you to unpack the set of packages, the things you said to use less than, if the agreement to message format specification, then you just need to care about what you said,