25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IMqttPacketSerializer.cs 344 B

123456789101112131415
  1. using System;
  2. using System.IO;
  3. using MQTTnet.Packets;
  4. namespace MQTTnet.Serializer
  5. {
  6. public interface IMqttPacketSerializer
  7. {
  8. MqttProtocolVersion ProtocolVersion { get; set; }
  9. ArraySegment<byte> Serialize(MqttBasePacket mqttPacket);
  10. MqttBasePacket Deserialize(MqttPacketHeader header, Stream body);
  11. }
  12. }