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