public override void ParsePacketContent(MySqlStreamReader r) { if (protocol41) { clientFlags = r.U4(); //4 maxPacketSize = r.U4(); //4 charsetNumber = r.ReadByte(); r.ReadFiller(23); user = r.ReadNullTerminatedString(); scrambleBuff = r.ReadLengthCodedBuffer(); database = r.ReadNullTerminatedString(); } else { clientFlags = r.U2();//2 maxPacketSize = r.U3();//3 user = r.ReadNullTerminatedString(); scrambleBuff = r.ReadBuffer(8); database = r.ReadLengthCodedString(); } }