I have to code a Java program that will receive messages from network and display their content to the user. The problem is that the messages that I receive are simply binar
Swig will handle a lot of the tedious repetitive work for you in terms of mapping the C structs to Java objects. Check out the Swig/Java manual and the entry on wrapping C structures.