Let's say I have a serializable class AppMessage.
AppMessage
I would like to transmit it as byte[] over sockets to another machine where it is rebuilt from the bytes received.
byte[]
How could I achieve this?