예제 #1
0
파일: Program.cs 프로젝트: Ebbo/dboservertw
        public static bool StartServer()
        {
            if (Serv != null) return false;

            Serv = new CharServ();
            LobbyServerThread = new Thread(Serv.Run) { IsBackground = true, CurrentCulture = CultureInfo.InvariantCulture };
            LobbyServerThread.Start();

            return true;
        }
예제 #2
0
파일: Program.cs 프로젝트: Ebbo/dboservertw
        public static bool StopServer()
        {
            if (Serv == null) return false;

            SysCons.WriteLine("Stopping CharServer..");
            Serv.Shutdown();
            LobbyServerThread.Abort();
            Serv = null;

            return true;
        }