magic const:
it's better to add at least static const size_t message_header_size = 3 *sizeof( <type> );