What is the best way to pass data between a C server to a Java applet? Currently it's done by using a buffer and copying bytes to it using memcpy, but if the object ever changes I have to hunt down every instance of where it's being sent to the applet and have it changed.
Is there a better way to pass object to java? How would you do it?
Edit for clarification: It is going from the C server to the Java applet only, there is no java servlet. The only thing the Applet passes to the C server is a hex number signaling an action to be taken