Exemple #1
0
        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;
        }
Exemple #2
0
        public static bool StopServer()
        {
            if (Serv == null) return false;

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

            return true;
        }