Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

identify structure format automatically

Status
Not open for further replies.

garimella

Full Member level 5
Joined
Aug 25, 2011
Messages
260
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
3,276
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.

Brian.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top