增加编解码异常,增加Mqtt实现,太臃肿了
大石头 authored at 2018-04-23 15:34:06
664.00 B
X

namespace NewLife.Net.MQTT.Packets
{
    /// <summary>连接返回代码</summary>
    public enum ConnectReturnCode
    {
        /// <summary>已接受</summary>
        Accepted = 0x00,

        /// <summary>拒绝不可用协议版本</summary>
        RefusedUnacceptableProtocolVersion = 0X01,

        /// <summary>拒绝标识</summary>
        RefusedIdentifierRejected = 0x02,

        /// <summary>服务不可用</summary>
        RefusedServerUnavailable = 0x03,

        /// <summary>错误用户名密码</summary>
        RefusedBadUsernameOrPassword = 0x04,

        /// <summary>为认证</summary>
        RefusedNotAuthorized = 0x05
    }
}