static void Main(string[] args) { CPacketBufferManager.initialize(2000); userlist = new List <CGameUser>(); CNetworkService service = new CNetworkService(); service.session_created_callback += on_session_created; service.initialize(); service.listen("0.0.0.0", 7979, 100); game_main = new CGameServer(); Console.WriteLine("Started!! GameServer"); while (true) { string input = Console.ReadLine(); System.Threading.Thread.Sleep(1000); } Console.ReadKey(); }
static void Main(string[] args) { userlist = new List <CGameUser>(); CNetworkService service = new CNetworkService(true); // 콜백 매소드 설정. service.session_created_callback += on_session_created; // 초기화. service.initialize(10000, 1024); service.listen("0.0.0.0", 20000, 100); Console.WriteLine("Started!"); while (true) { string input = Console.ReadLine(); //Console.Write("."); System.Threading.Thread.Sleep(1000); } Console.ReadKey(); }