Add a 2-byte header (network byte order) with the length of the message to the protocol.
Better name for socket API wrapper.