MessageSocket library

Classes

MessageSocket
Packages data from a stream into messages, by wrapping messages with a prefixed length (and then the length reversed and inverted (xor 0xFFF...), for checksum).
Note: I've added locks on sending and receiving, so message integrity should be safe, but you should still be aware of the potential confusion/mixups inherent to having multiple threads communicate over a single channel.