I have two applications A and B (linux client server). Application A sends a structure to B over TCP. Application B decodes the structure received and completes the processing. This is all fine.
Suppose structure of application A changes, it becomes mandatoryto change the code in B. Else decoding becomes incorrect. Is there a generic method by which I can decode structure format in B so that irrespective of structure changes in A, my decoding never fails
Possibly an XML format would work as it defines its own structure. Other than that, a fixed method of passing any structure from one to the other would work, some command that says "here is a new structure" so the recipient is prepared for the new data it holds.