public static void StartServer(mApp parent) { mattsCPPS.login = new mServer("config.xml"); mattsCPPS.login.startServ(); Thread l = new Thread(() => { while (mApp.started) { try { mattsCPPS.login.acceptPenguins(); } catch { Console.WriteLine("[mCPPS] Server stopped."); Console.WriteLine(); parent.serverStopEvent(); return; } } }); l.Start(); }
public Penguin(TcpClient conn, mServer parent) { this.conn = conn; this.parent = parent; }