Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public Penguin(TcpClient conn, mServer parent)
 {
     this.conn   = conn;
     this.parent = parent;
 }