SagaMap.LoginSession.LoginSession C# (CSharp) Method

LoginSession() public method

public LoginSession ( string host, int port ) : System
host string
port int
return System
        public LoginSession(string host, int port)
        {
            this.commandTable = new Dictionary<ushort,Packet>();

            this.commandTable.Add(0x0201, new Packets.Login.Get.SendKey());
            this.commandTable.Add(0x0202, new Packets.Login.Get.SendGUID());
            this.commandTable.Add(0xFE01, new Packets.Login.Get.MapPing());

            this.commandTable.Add(0xFF01, new Packets.Login.Get.IdentAnswer());

            Socket newSock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
            this.Connect(newSock, host, port);
        }