public static void Main(string[] args) { if (!DbManager.Connect("game", "127.0.0.1", 3306, "root", "")) { return; } NetManager.StartLoop(8888); }
public static void Main(string[] args) { if (!DbManager.Connect("sustech_majiang", "127.0.0.1", 3306, "root", "123456")) { return; } NetManager.StartLoop(8888); }
public static void Main(string[] args) { //连接数据库 ///匿名委托 if (!ConnectDB(delegate() { Show(); })) { Console.ReadKey(); return; } //启动程序并监听82端口 NetManager.StartLoop(82); }