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; }
public static bool StopServer() { if (Serv == null) return false; SysCons.WriteLine("Stopping CharServer.."); Serv.Shutdown(); LobbyServerThread.Abort(); Serv = null; return true; }