Home > Software engineering >  A doubt about communication data parsing
A doubt about communication data parsing

Time:01-04

Communication, such as A and B have specific communication protocols, the resolution after received B data in accordance with the agreement,
But if there are several kinds of agreements between AB, and also the possibility of change, the analytical procedure how to write?
Just don't write the parsing process in code to death, such as the written communication protocol configuration file, and then parse time reading the configuration file parsing communication data in this way,

This way, specific how to implement a bit better? If it is fixed agreement can be written as structure parsing, not fixed agreement, how to implement?

CodePudding user response:

His defines a communication protocol and protocol defined in the version number, send and receive by judging the version number parsing
  • Related