// LooksReal does a best efffort to detect if a MsgHeadr is not invalid
LooksReal does a best efffort to detect if a MsgHeadr is not invalid
// LooksReal does a best efffort to detect if a MsgHeadr is not invalid
func (m *MsgHeader) LooksReal() bool {
	if m.MessageLength > MaxMessageSize || m.MessageLength < 24 {
		return false
	}
	if m.RequestID < 0 {
		return false
	}
	if m.ResponseTo < 0 {
		return false
	}
	return goodOpCode[int32(m.OpCode)]
}
func ( m * MsgHeader ) LooksReal ( ) bool { if m . MessageLength > MaxMessageSize || m . MessageLength < 24 { return false } if m . RequestID < 0 { return false } if m . ResponseTo < 0 { return false } return goodOpCode [ int32 ( m . OpCode ) ] }
LooksReal does a best efffort to detect if a MsgHeadr is not invalid
LooksReal does a best efffort to detect if a MsgHeadr is not invalid
// AFAIK, the smallest wire protocol message possible is a 24 byte // KILL_CURSORS_OP