Encode some fields in the first protocol message.