コード例 #1
0
ファイル: Program.cs プロジェクト: yfz912/KoProjectCSharp
        static void Main(string[] args)
        {
            Console.Title = "KNIGHT ONLINE _V1534";
            if (!g_pMain.InitializeLoginServer())
            {
                Console.WriteLine("Cannont intialize Login Server progress...... \nPress any key.");
                return;
            }

            skt = new Network.KOSocket((short)(15001), "GameServer", g_pMain.PacketHandler);
            skt.StartAccept();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            using (var lgn = new LoginSrv())
            {
                Console.Title = "KNIGHT ONLINE _V1534";
                if (!lgn.InitializeLoginServer())
                {
                    Console.WriteLine("Cannont intialize Login Server progress...... \nPress any key.");
                    return;
                }

                for (int i = 0; i < 10; i++)
                {
                    koSocket = new Network.KOSocket((short)(15100 + i), "LoginServer", lgn.PacketHandler);
                    koSocket.StartAccept();
                }
            }
        }