Beispiel #1
0
        public void HandleRealmList(RealmManager Session)
        {
            PacketWriter realmWriter = new PacketWriter();
            realmWriter.WriteUInt8(1);
            realmWriter.WriteBytes(System.Text.Encoding.ASCII.GetBytes("|cFF00FFFF Flame-WoW"));
            realmWriter.WriteUInt8(0);
            realmWriter.WriteBytes(System.Text.Encoding.ASCII.GetBytes("127.0.0.1:9090"));
            realmWriter.WriteUInt8(0);
            realmWriter.WriteUInt32(0);

            Session.Send(realmWriter, realmSocket);
            realmSocket.Close();
        }
Beispiel #2
0
        protected void AcceptProxyConnection()
        {
            while (listenProxySocket)
            {
                Thread.Sleep(1);
                if (proxyListener.Pending())
                {
                    RealmManager Proxy = new RealmManager();
                    Proxy.proxySocket = proxyListener.AcceptSocket();

                    Thread NewThread = new Thread(Proxy.RecieveProxy);
                    NewThread.Start();
                }
            }
        }
Beispiel #3
0
        public void HandleProxyConnection(RealmManager Session)
        {
            Log.Message();
            Log.Message(LogType.Normal, "Begin redirection to WorldServer.");

            PacketWriter proxyWriter = new PacketWriter();
            proxyWriter.WriteBytes(System.Text.Encoding.ASCII.GetBytes("127.0.0.1:8100"));
            proxyWriter.WriteUInt8(0);

            Session.Send(proxyWriter, proxySocket);
            proxySocket.Close();

            Log.Message(LogType.Normal, "Successfully redirected to WorldServer");
            Log.Message();
        }
Beispiel #4
0
        protected void AcceptRealmConnection()
        {
            while (listenRealmSocket)
            {
                Thread.Sleep(1);
                if (realmListener.Pending())
                {
                    RealmManager Realm = new RealmManager();
                    Realm.realmSocket = realmListener.AcceptSocket();

                    Thread NewThread = new Thread(Realm.RecieveRealm);
                    NewThread.Start();
                }
            }
        }