IProtocol.cs 448 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Core.StlMes.Client.Mcp.Mch.Mcms
  6. {
  7. public interface IProtocol
  8. {
  9. byte[] Framing(byte[] byteArray);
  10. DeframeType AnalaysData(List<byte> ReceiveData, out Object Data);
  11. }
  12. public enum DeframeType
  13. {
  14. RightFrame = 0,
  15. WrongHead = 1,
  16. LengthLess = 2,
  17. WrongFrame = 3,
  18. UnKnow
  19. }
  20. }