const MAXLENGTH 256; struct id { string name<MAXLENGTH>; int pin; }; program BANKACCOUNT { version BANKVERS { void deposit(id,float) = 1; void withdraw(id,float) = 2; float balance(id) = 3; } = 1; } = 0x28786554;
Design a representation system for laying out the bits within the request and the response packets. You should consider which information will be known by both ends, and whether there needs to be explicit representation of type information or of data length information.