[fix]Config创建默认配置文件的开关Runtime.CreateConfigOnMissing,仅需对自动创建生效,而不应该阻止用户主动Save
智能大石头 编写于 2024-08-09 00:30:41 石头 提交于 2024-08-10 14:22:24
X

namespace NewLife.Net.NTP
{
    /// <summary>Leap indicator</summary>
    public enum NTPLeapIndicator
    {
        /// <summary>0 - No warning</summary>
        NoWarning,

        /// <summary>1 - Last minute has 61 seconds</summary>
        LastMinute61,

        /// <summary>2 - Last minute has 59 seconds</summary>
        LastMinute59,

        /// <summary>3 - Alarm condition (clock not synchronized)</summary>
        Alarm
    }

    /// <summary>Mode</summary>
    public enum NTPMode
    {
        /// <summary>未知</summary>
        Reserved,

        /// <summary>1 - Symmetric active</summary>
        SymmetricActive,

        /// <summary>2 - Symmetric pasive</summary>
        SymmetricPassive,

        /// <summary>3 - Client</summary>
        Client,

        /// <summary>4 - Server</summary>
        Server,

        /// <summary>5 - Broadcast</summary>
        Broadcast,

        /// <summary>6 - reserved for NTP control message</summary>
        ReservedForNTPControlMessage,

        /// <summary>7 - reserved for private use</summary>
        ReservedForPrivateUse
    }

    /// <summary>Stratum</summary>
    public enum NTPStratum
    {
        /// <summary>0 - unspecified or unavailable</summary>
        Unspecified,

        /// <summary>1 - primary reference (e.g. radio-clock)</summary>
        PrimaryReference,

        /// <summary>2-15 - secondary reference (via NTP or SNTP)</summary>
        SecondaryReference,

        /// <summary>16-255 - reserved</summary>
        Reserved
    }
}