enum MsgType { MT_INVALID = 0; MT_HEADER = 1; } message BaseMsg { MsgType type = 1; uint32 len = 2; string dat