Send message length + message as byte[]

First send the message length as an Int, then send the message as a
byte[]