Ejemplo n.º 1
0
        /// <summary>
        /// Starts the server using default parameters
        /// Eventually will be upgraded to use a config file
        /// </summary>
        /// <returns></returns>
        public static MuServer StartServer()
        {
            Console.WriteLine("Starting server...");

            //TODO: load parameters from some sort of config file
            var srv = new MuServer(new MuServerFactory(), IPAddress.Any);

            return(srv);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Starts a server and waits
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            Console.WriteLine("Starting Server...");

            var srv = MuServer.StartServer();

            //TODO: come up with a resonable ending scenario
            while (true)
            {
                Thread.Sleep(100);
            }
        }