I know about the serialization part, i use AMF. I just don't know how receive them in Java and then edit them. Using:
PHP Code:
new BufferedReader(new InputStreamReader(socket.getInputStream()));
Gives me the string, i can send it back just fine but i want to edit some variables server side and then send it back, it doesn't work that way though since then the serialization gets corrupted or something. (flash reads the input as undefined)
Say im sending 2 strings in flash (keeping it very simple, there is more to send)
PHP Code:
socket.writeInt( user_ID );
socket.writeUTFBytes( message );
Then i want to be able to access those 2 variables in Java, edit the message, keep the user_ID. And send it back to Flash.
So all i need to know is how to read the socket stream in java to be able to read/edit the variables