コード例 #1
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();
                }
            }
        }
コード例 #2
0
 public LoginSession(Packet pkt, AsyncClient client, LoginSrv LoginBase)
 {
     this.pkt       = pkt;
     this.client    = client;
     this.LoginBase = LoginBase;
 }