One of my fellow researchers (a C/C++ developer) was assigned to design a protocol and because he is a C programmer he designed something which is hard to implement in other languages which we need (VB, php, Java
If it had built something like SMTP and HTTP protocol (where even numbers are transferred in string
format) it could be easily implemented. However he has used C structures.
1) Now the problem is that how can I create such commands (which contain binary coded numbers with different lengths) in Java?
2) What primitive data types I should use for 8bit and 32bit unsigned data types (in a way that later a C program does not have problem interpreting them as normal C data types)?
Thank you for your help.