internal void FireSuccess(OkPacket ok)
 {
     if (SuccessEvent != null)
     {
         SuccessEvent(ok);
     }
 }
Beispiel #2
0
        public static ResponsePacket Parse(PacketReader packetReader)
        {
            switch (packetReader.CurrentByte)
            {
            case 0:    return(OkPacket.Parse(packetReader));

            case 0xFE: return(EOFPacket.Parse(packetReader));

            case 0xFF: return(Error.Parse(packetReader));
            }
            return(null);
        }
		internal void FireSuccess(OkPacket ok)
		{
			if (SuccessEvent != null) {
				SuccessEvent(ok);
			}
		}