static void Main(string[] args) { PacketRegister.CreateRegistry(); var server = new Server.Server(); try { server.Listen(); } catch (Exception ex) { Console.WriteLine(); LogHandler.Log(ex.Message); Console.WriteLine(); LogHandler.Log(ex.StackTrace); } Console.WriteLine("Press any key to exit..."); Console.ReadKey(); }
static void Main(string[] args) { Server.Server.Server server = new Server.Server.Server("127.0.0.1", 88); server.Start(); ControllerManager.Instance.Init(); //MySqlConnection con = ConnHelper.Connect(); //MySqlCommand cmd = new MySqlCommand(); //cmd.CommandText = "select username from user;"; //cmd.Connection = con; //MySqlDataReader reader = cmd.ExecuteReader(); //if (reader.HasRows) //{ // while (reader.Read()) // { // Console.WriteLine(reader.GetValue(0)); // } //} Console.ReadKey(); }