using System; namespace SuperSocket.SocketBase { /// /// Server's state enum class /// public enum ServerState : int { /// /// Not initialized /// NotInitialized = ServerStateConst.NotInitialized, /// /// In initializing /// Initializing = ServerStateConst.Initializing, /// /// Has been initialized, but not started /// NotStarted = ServerStateConst.NotStarted, /// /// In starting /// Starting = ServerStateConst.Starting, /// /// In running /// Running = ServerStateConst.Running, /// /// In stopping /// Stopping = ServerStateConst.Stopping, } internal class ServerStateConst { public const int NotInitialized = 0; public const int Initializing = 1; public const int NotStarted = 2; public const int Starting = 3; public const int Running = 4; public const int Stopping = 5; } }