Reviewing merge request #1: Message Style and Variable Length Buffer
We send a message that includes a fixed width buffer (the default being 1024 bytes) regardless of whether we need it. So in the case of server response indicating an error, which should be at most a 4 byte int, we push an extra MB through the socket. In a similar way we have to send more than one message if we need to send more than one message.
The message struct is typedefed with a '_t' postfix unlike any of the other structs.