Пример #1
0
        private void HandleParseError(String msg)
        {
            _state  = ParsingState.Head;
            _packet = new MySqlQueryPacket();

            OnParsedError?.Invoke();
        }
Пример #2
0
 private void HandleParseOk()
 {
     if (OnParsedPacket != null)
     {
         _packet.Time  = LastTime;
         _packet.SrcEP = LastSrcEP;
         _packet.DstEP = LastDstEP;
         OnParsedPacket(_packet);
     }
     _state  = ParsingState.Head;
     _packet = new MySqlQueryPacket();
 }
Пример #3
0
 public MySqlQueryParser()
 {
     _state  = ParsingState.Head;
     _packet = new MySqlQueryPacket();
 }